Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl: (35) SSL connect error

Tags:

curl

ssl

 [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]# 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 
like image 444
caoyufei Avatar asked Apr 22 '16 07:04

caoyufei


People also ask

How do I fix resolve cURL 35 SSL connect?

The cURL error 35 can appear when the cURL function cannot connect to your website using SSL. Curl often uses a different set of certificates, shipped with PHP. There are several things that can cause this problem, in most cases updating both cURL and PHP to a newer version will resolve this issue.

What is cURL error #: encountered end of file?

The error suggests a very old version of the PHP-curl (networking) component on your server, or out-of-date SSL certificates on the server. So, only the server admin can fix that. However, if they are not timely in doing so, let us know, and we can send you a zip file directly.

What causes SSL error?

An SSL certificate error occurs when the browser cannot verify the SSL certificates returned by the server. When the error happens, the browser blocks the website and warns the user that the website cannot be trusted as shown below. These warnings will negatively impact the user's trust in your website.

What is cURL error?

cURL errors are often caused by an outdated version of PHP or cURL. cURL errors are a good example of server-related errors. These are errors that aren't caused by WordPress or Really Simple SSL, but by a server configuration. These errors usually won't cause any issues on the front end of your site.


Video Answer


1 Answers

If updating cURL doesn't fix it, updating NSS should do the trick.

like image 180
Andrew Snell Avatar answered Sep 23 '22 21:09

Andrew Snell