Now NSS is converted to openssl in CentOS.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.