1、下载 openssl
openssl官方下载地址:https://www.openssl.org/source/
root@localhost \~\]# wget [https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz](https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz "https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz") 2、编译安装 \[root@localhost \~\]# ./config --prefix=/usr/local/openssl // 指定安装路径 \[root@localhost \~\]# make \&\& make install 3、替换当前系统的旧版本 \[root@localhost \~\]# mv /usr/bin/openssl /usr/bin/openssl.old \[root@localhost \~\]# mv /usr/lib64/openssl /usr/lib64/openssl.old \[root@localhost \~\]# mv /usr/lib64/libssl.so /usr/lib64/libssl.so.old \[root@localhost \~\]# ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl \[root@localhost \~\]# ln -s /usr/local/openssl/include/openssl /usr/include/openssl \[root@localhost \~\]# ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.so \[root@localhost \~\]# echo "/usr/local/openssl/lib" \>\> /etc/ld.so.conf \[root@localhost \~\]# ldconfig -v // 建立动态链接 \[root@localhost \~\]# openssl version #查看升级后的版本