小编efk*_*kan的帖子

curl: (60) SSL 证书问题:无法获取本地颁发者证书

编辑: 我已经从 curl.haxx.se 更新了我的根 CA 证书。


当我尝试时,结果curl -Iv https://yahoo.com出现错误unable to get local issuer certificate。但是,如果我尝试,curl -Iv --cacert /etc/ssl/certs/ca-certificates.crt https://yahoo.com我会得到一个没有任何错误的结果。

奇怪curl -Iv https://google.com地正常工作。但curl -Iv https://deb.nodesource.com没有。

有没有机会克服这个问题?(通过更改卷曲配置等)

root@ip-172-31-40-176:/var# curl -Iv https://yahoo.com
* Rebuilt URL to: https://yahoo.com/
* Hostname was NOT found in DNS cache
*   Trying 206.190.36.45...
* Connected to yahoo.com (206.190.36.45) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1): …
Run Code Online (Sandbox Code Playgroud)

ssl amazon-ec2 curl 14.04

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

14.04 ×1

amazon-ec2 ×1

curl ×1

ssl ×1