首页 / 操作系统 / Linux / Linux中使用curl命令访问https站点4种常见错误和解决方法
每一种客户端在处理https的连接时都会使用不同的证书库。IE浏览器和FireFox浏览器都可以在本浏览器的控制面板中找到证书管理器。在证书管理器中可以自由添加、删除根证书。 而Linux的curl使用的证书库在文件“/etc/pki/tls/certs/ca-bundle.crt”中。(CentOS) 以下是curl在访问https站点时常见的报错信息 1.Peer’s Certificate issuer is not recognized
复制代码代码如下: [root@ip-172-31-32-208 Nginx]# curl https://m.ipcpu.com curl: (60) Peer"s Certificate issuer is not recognized. more details here: http://curl.haxx.se/docs/sslcerts.html
复制代码代码如下: [root@ip-172-31-32-208 ~]# curl https://kyfw.12306.cn/ curl: (60) Peer"s certificate issuer has been marked as not trusted by the user. More details here: http://curl.haxx.se/docs/sslcerts.html
复制代码代码如下: [root@GO-EMAIL-1 aa]# curl https://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