openssl升级记录:
1、源码编译
cd /openssl-1.0.2u/
./config --prefix=/usr/local/ssl -d shared
make -j 4 && make install
2、查询libssl,libcrypto的实际位置,一般都在/usr/x86_64-linux-gnu/下
root@bogon:~# which sshd
/usr/sbin/sshd
root@bogon:~# which openssl
/usr/bin/openssl
root@bogon:~# ldd /usr/sbin/sshd |grep crypto
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fad1a3a9000)
root@bogon:~# ldd /usr/bin/openssl |grep ssl
libcrypto.so.1.0.0 =>/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fb8404c6000)
3、据openssl include 实际部署目录来决定:
3.1)备份
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
3.2)更新
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/