作者:手机用户2602898555 | 来源:互联网 | 2024-11-06 14:28
1234567891011[root@bogon bin]#./curl -v https://www.baidu.com/* Trying 180.149.132.151...* Connect
1 2 3 4 5 6 7 8 9 10 11
| [root@bogon bin]#./curl -v https://www.baidu.com/
* Trying 180.149.132.151...
* Connected to www.baidu.com (180.149.132.151) port 443 (#0)
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Closing connection 0
curl: (77) error setting certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none |
这种情况主要是因为 /etc/pki/tls/certs/ca-bundle.crt 这个文件过期了,
从新下载了http://curl.haxx.se/ca/cacert... 替换了 就好了.
但是我不太理解,为什么请求百度这种单向认证的web系统,我这里的curl还要校验本地的证书?