curl库安装ARM板测试验证出错curl: (60) SSL certificate problem: unable to get local issuer certificate

在编译好curl和openssl库后,在I-MX287A板子上运行测试工具curl时出现问题:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

经过查看More details here: https://curl.haxx.se/docs/sslcerts.html这个网站的提示内容,在执行./curl 命令行工具时进行如下操作:

-k,--insecure使用SSL时允许不安全的服务器连接
      --interface <name>使用网络接口(或地址)

 

运行时允许加载不安全的服务连接,就可测试通过了。

测试步骤是把编好的ARM版本的动态库复制到板子的/lib/目录下,并建立好库的软连接如图:

然后把编译arm版curl库的安装路径下的bin文件夹下的curl可执行文件拷贝到板子的随便路径下,运行

 

 ./curl -k "https://www.baidu.com"

在板子上运行通过即代表编译的动态库没大问题,可以开始使用库来写程序了,当然可以直接在交叉编译应用程序的时候使用静态库编译。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章