1. 程式人生 > >CentOS 6 Openssl版本升級

CentOS 6 Openssl版本升級

openssl

1、查看源版本

# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013


2、下載安裝openssl-fips-2.0.13

# wget -c https://www.openssl.org/source/openssl-fips-2.0.13.tar.gz
# yum -y install perl gcc
# tar xf openssl-fips-2.0.13.tar.gz
# cd openssl-fips-2.0.13
# ./config && make && make install
# cd ..


3、下載安裝openssl-1.0.2j

# wget -c https://www.openssl.org/source/openssl-1.0.2j.tar.gz
# yum install -y zlib-devel zlib
# tar xf openssl-1.0.2j.tar.gz
# cd  penssl-1.0.2j
# ./config shared zlib fips
# make && make install
# cd ..


4、更新並備份原openssl

# mv /usr/bin/openssl /usr/bin/openssl-1.0.1e
# mv /usr/include/openssl /usr/include/openssl-1.0.1e
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl  usr/include/openssl
# echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl-1.0.2j.conf


5、驗證升級是否成功

# openssl version
OpenSSL 1.0.2j-fips  26 Sep 2016


本文出自 “Linux運維” 博客,請務必保留此出處http://magnosaurus.blog.51cto.com/1164009/1976370

CentOS 6 Openssl版本升級