Now NSS is converted to openssl in CentOS.
The 64-bit centos6.5 adopted by the company's server. After installing the php nginx environment in yum, it found that curl was used for some time and the default curl was NSS instead of openssl, now the NSS is converted into openssl process records.
First, check the curl version and find that it is not openssl.
Curl-V
Libcurl/7.19.7 NSS/3.35 zlib/1.2.3
Because centos 6.5 (the version I used is not tested in other versions), the default installation of curl is that the ssl version is NSS.
Therefore, you need to recompile the Curl.
Go to official download http://curl.haxx.se/download/archeology/
You can also download 7.19.7 or a later version for recompilation. Here, I download 7.35.0.
./Configure -- prefix =/usr -- without-nss -- with-ssl
Make & make install
Finally, do not forget to execute
// Ldconfig
Echo "/usr/local/lib">/etc/ld. so. conf & ldconfig
View the curl version again
Curl-V
Curl 7.35.0 (x86_64-unknown-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1e zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz
Restart php-fpm nginx.
Service php-fpm restart
Service nginx restart