Linux upgrade OpenSSL

Source: Internet
Author: User
Tags install openssl openssl version

1. Current system version [Plain] View Plain Copy 
  1. -sh-4.1$ Cat/etc/redhat-release
  2. CentOS Release 6.5 (Final)
  3. -sh-4.1$ uname-m
  4. x86_64
  5. -sh-4.1$ Uname-r
  6. 2.6.32-431.17.1.el6.x86_64


2. SSL version Information [Plain] View Plain Copy 
  1. # OpenSSL version
  2. OpenSSL 1.0.1e-fips 2013
  3. # wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz
  4. ..... # # # Details

3. Update Zlib

[Plain] View Plain Copy 
    1. # yum Install-y zlib


4. Unzip and install OpenSSL [Plain] View Plain Copy 
  1. # pwd
  2. /root/tools
  3. # ls
  4. Openssl-1.0.1g.tar.gz
  5. # Tar XF openssl-1.0.1g.tar.gz
  6. # CD OPENSSL-1.0.1G
  7. #./config Shared Zlib
  8. # make
  9. # make Install
  10. # CD:
  11. # Mv/usr/bin/openssl/usr/bin/openssl.ori # put the previous backup
  12. # Mv/usr/include/openssl/usr/include/openssl.ori
  13. # ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl # Soft Link
  14. # ln -s /usr/local/ssl/include/openssl /usr/include/openssl   
  15. # 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"    
  16. # echo "/usr/local/ssl/lib" >>/etc/ld.so.conf
  17. # ldconfig-v


Where/etc/ld.so.conf modified information "Use Vim to modify" [Plain] View Plain Copy 
  1. [[Email protected] ~] $ cat/etc/ld.so.conf
  2. Include ld.so.conf.d/*.conf
  3. # Update OpenSSL from OpenSSL 1.0.1e-fips to OpenSSL 1.0.1g
  4. /usr/local/ssl/lib


5. See if the upgrade was successful

[Plain] View Plain Copy 
  1. # openssl  version     
  2. 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

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.