The solution of SSL error ssl connect error 35
The solution of SSL error ssl connect error 35
Situation 1:
When a user accesses the do.php page on vps to perform scheduled tasks, when executing vps, the result is an error of curl: (35) SSL connect error. In this case, the general solution is as follows:
Solution:
First upgrade nss (Mozilla Network Security Services Network Security Service): yum update nss
Restart PHP:service php-fpm restart problem resolution.
Case 2:
PHP uses CURL to simulate the failed solution of logging in to HTTPS Wechat public platform under the nginx server:
/ / CURLE_SSL_CONNECT_ERROR (35)
Where there is a problem, shake hands at SSL / TLS. You really want the error buffer and read the email because it addresses the problem slightly. It could be certificates (file format, path, permissions), passwords, and others
Php uses curl to simulate login https in nginx and has an error: gnutls_handshake () failed: A TLS warning alert has been received
The solution to this is:
Curl_setopt ($c, CURLOPT_SSLVERSION, 3)
Specify the version of SSL
In this way, the problem of simulated landing on Wechat public platform is solved.
Global trusted CA institutions