升级openssl

2019-07-29 01:53 阅读 548 views 次 升级openssl已关闭评论

 

yum install zlib-devel
4、解压安装
tar zxf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
./config shared zlib-dynamic
make
make install
5,替换旧版OpenSSL

mkdir ~/gfbin/openssl1.1.1c
cp -r /root/nginx1.17.2/openssl-OpenSSL_1_1_1c/.openssl/* ~/gfbin/openssl1.1.1c/
cd /root/gfbin/openssl1.1.1c/
cp libcrypto.so.1.1 ~/gfbin/openssl1.1.1c/
cp libssl.so.1.1 ~/gfbin/openssl1.1.1c/

mkdir ~/bak/ssl1.0.1e/
cp /usr/bin/openssl ~/bak/ssl1.0.1e/
cp /usr/lib64/libcrypto.so ~/bak/ssl1.0.1e/
cp /usr/lib64/libssl.so ~/bak/ssl1.0.1e/
cp -r /usr/include/openssl ~/bak/ssl1.0.1e/include
cp -r /usr/local/ssl/lib ~/bak/ssl1.0.1e/lib

rm -f /usr/include/openssl
rm -f /usr/lib64/libcrypto.so
rm -f /usr/lib64/libssl.so
rm -rf /usr/local/ssl/lib
rm -f /usr/bin/openssl
rm -f /usr/include/openssl

ln -s /root/gfbin/openssl1.1.1c/libcrypto.so.1.1 /usr/lib64/libcrypto.so
ln -s /root/gfbin/openssl1.1.1c/libssl.so.1.1 /usr/lib64/libssl.so
ln -s /root/gfbin/openssl1.1.1c/lib /usr/local/ssl/lib
ln -s /root/gfbin/openssl1.1.1c/bin/openssl /usr/bin/openssl
ln -s /root/gfbin/openssl1.1.1c/include/openssl /usr/include/openssl
openssl version

6,配置库文件搜索路径
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig -v
7、查看是否升级成功

[root@~~~]# openssl version -a

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:升级openssl | 蚂蚁浏览器文档
分类:电脑技术 标签:

评论已关闭!