伺服器 升級OpenSSL

古兴越發表於2024-07-07

備註

以前的,將就用一下,後面再繼續研究

基本資訊

官網:https://www.openssl.org/source/
漏洞:https://www.openssl.org/news/secadv/
騰訊雲-主機安全:https://console.cloud.tencent.com/cwp

升級OpenSSL

https://www.cnblogs.com/itbsl/p/11275728.html
https://blog.csdn.net/qq_42177284/article/details/104984707

openssl version
OpenSSL 1.0.2k-fips 26 Jan 2017

find / -name openssl
/usr/local/openssl

cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
tar -xzvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l

./config --prefix=/usr/local/openssl
make && make install
mv /usr/bin/openssl /usr/bin/openssl.bak
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl

openssl version

解決報錯

openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

原文:https://blog.csdn.net/weixin_43296326/article/details/88680329

find / -name libssl.so.1.1
/usr/local/openssl/lib/libssl.so.1.1

ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
openssl version

相關文章