升级openssl

openssl-1.0.1e及其之前的版本有heartbleed漏洞

升级openssl到最新版本

wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz

cd openssl-1.0.2d

./config shared zlib

make

make install

mv /usr/bin/openssl /usr/bin/openssl.old

mv /usr/include/openssl /usr/include/openssl.old

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

ldconfig -v

openssl version -a


你可能感兴趣的:(升级openssl)