下载
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
解压
tar -zxvf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config
make
make install
查看目录结果 find / -name openssl
/usr/lib64/ruby/1.8/openssl
/usr/local/src/nginx-1.10.1/auto/lib/openssl
/usr/local/src/openssl-1.0.1c/include/openssl
/usr/local/src/openssl-1.0.1c/apps/openssl
/usr/local/src/openssl-1.0.1c/.openssl/include/openssl
/usr/local/src/openssl-1.0.1c/.openssl/bin/openssl
/usr/local/ssl/include/openssl
/usr/local/ssl/bin/openssl
/usr/bin/openssl
/usr/share/doc/packages/openssl
/etc/apparmor.d/abstractions/openssl
备份旧版
mkdir -p /wo81/openssl_old
mv /usr/bin/openssl /wo81/openssl_old/
替换新版
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
检查更新后的OpenSSL版本
openssl version