尝试使用以下命令访问github失败,验证失败错误。我应该怎么做让过去这个问题无法通过卷曲访问github
C:\software\curl-7.23.1-win64-ssl-sspi>curl -i https://api.github.com
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
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.
**请注意:**此选项禁用SSL证书验证。 --cacert是首选的方式。 – 2012-09-18 12:31:33
使用cURL进行GitHUb访问,使SSL有点多余。使用'-Lk'标志也可以遵循任何重定向。 – not2qubit 2014-01-28 18:20:49