curl SSL证书错误 [英] curl SSL certificate error

查看:4413
本文介绍了curl SSL证书错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过CURL安装Vaprobash,但我收到这个消息,每次我尝试通过CURL下载的东西。我使用的是Mac。

  curl -L http://bit.ly/vaprobash> Vagrantfile 




curl:(60)SSL证书问题:无法获取本地发行者证书
更多详细信息: http://curl.haxx.se/docs/sslcerts .html



curl默认使用证书颁发机构(CA)公钥(CA证书)的捆绑
执行SSL证书验证。如果默认的
bundle文件不足,您可以使用--cacert选项指定一个备用文件

如果此HTTPS服务器使用由
中表示的CA签署的证书,则证书验证可能失败,原因是证书的
问题(可能已过期,或者名称可能
与网址中的域名不匹配)。
如果您想要关闭curl对证书的验证,请使用
-k(或--insecure)选项。



--insecure

curl将不会尝试验证SSL证书。


I'm trying to install Vaprobash via CURL but I get this message everytime I try to download something through CURL. I'm using a Mac.

curl -L http://bit.ly/vaprobash > Vagrantfile

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

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

解决方案

Append option in curl call:

-k/--insecure

The curl will be not trying to verify SSL cert.

这篇关于curl SSL证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆