编译安装openssl 1.1.1s
1、安装依赖,下载安装包
yum install gcc gcc-c++ -y
wget https://www.openssl.org/source/openssl-1.1.1s.tar.gz
2、解压缩编译
tar -xf openssl-1.1.1s.tar.gz
cd openssl-1.1.1s
./config --prefix=/usr/local/openssl # 安装到 /usr/local/openssl
make && make install
3、配置
echo "/usr/local/openssl/lib/" >> /etc/ld.so.conf
ldconfig
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
4、查看版本,如果还是旧版本重新连接会话即可
[root@localhost ~]# openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017
[root@localhost ~]#