1. Current system version
[Plain] View Plain Copy
- -sh-4.1$ Cat/etc/redhat-release
- CentOS Release 6.5 (Final)
- -sh-4.1$ uname-m
- x86_64
- -sh-4.1$ Uname-r
- 2.6.32-431.17.1.el6.x86_64
2. SSL version Information
[Plain] View Plain Copy
- # OpenSSL version
- OpenSSL 1.0.1e-fips 2013
- # wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz
- ..... # # # Details
3. Update Zlib
[Plain] View Plain Copy
- # yum Install-y zlib
4. Unzip and install OpenSSL
[Plain] View Plain Copy
- # pwd
- /root/tools
- # ls
- Openssl-1.0.1g.tar.gz
- # Tar XF openssl-1.0.1g.tar.gz
- # CD OPENSSL-1.0.1G
- #./config Shared Zlib
- # make
- # make Install
- # CD:
- # Mv/usr/bin/openssl/usr/bin/openssl.ori # put the previous backup
- # Mv/usr/include/openssl/usr/include/openssl.ori
- # ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl # Soft Link
- # ln -s /usr/local/ssl/include/openssl /usr/include/openssl
- # cp /etc/ld.so.conf /etc/ld.so.conf.ori # backup before operation "So if an error occurs, you can restore it in a timely manner"
- # echo "/usr/local/ssl/lib" >>/etc/ld.so.conf
- # ldconfig-v
Where/etc/ld.so.conf modified information "Use Vim to modify"
[Plain] View Plain Copy
- [[Email protected] ~] $ cat/etc/ld.so.conf
- Include ld.so.conf.d/*.conf
- # Update OpenSSL from OpenSSL 1.0.1e-fips to OpenSSL 1.0.1g
- /usr/local/ssl/lib
5. See if the upgrade was successful
[Plain] View Plain Copy
- # openssl version
- OpenSSL 1.0.1g 7 APR 2014 # Upgrade successful
Please also refer to
1.Linux upgrade OpenSSL
2, strengthen the SSL security of Nginx
3. Introduction to the use of Ldconfig in Linux
Linux upgrade OpenSSL