[root@vagrant-centos65 you-get]# curl -v https://api.xxx.cn
* About to connect() to api.xxx.cn port 443 (#0)
* Trying 123.xxx.xx.xx... connected
* Connected to api.xxx.cn (123.xxx.xx.xx) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12286
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
[root@vagrant-centos65 you-get]#
[root@vagrant-centos65 you-get]# curl --version
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
CentOS release 6.7 (Final) 遇到同样问题
但是 wget 正常
CentOS Linux release 7.2.1511 (Core) 没有问题
问题可能是 curl 版本,或者 NSS DB 的版本,但是手工复制 Centos7 的 nssdb 到 Centos6,问题依旧。
我一个脚本需要curl https://cisofy.com/download/l... ,只好临时用 wget 了。