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"

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yzxjd1314

多谢鼓励,探索前行

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值