CentOS7下升级openssl

参考:

  • https://sb.sb/centos-upgrade-openssl/
  • https://help.aliyun.com/knowledge_detail/37417.html

yum install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel

cd /usr/local/src

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

tar -xzvf openssl-1.0.2-latest.tar.gz

cd openssl-1.0.2*

./config

make && make install

mv /usr/bin/openssl /tmp/

ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

openssl version

 

此外还需要重启其他与OpenSSL相关的服务,可通过bash lsof | grep libssl | awk ‘{print $1}’| sort | uniq查看与OpenSSL库相关的服务。

posted @ 2017-07-14 04:56  flowjacky  阅读(3401)  评论(0编辑  收藏  举报