Ubuntu16.04 安装openssl
1 下载
https://www.openssl.org/source/
2 解压
3 安装
# ./config --prefix=/usr/local --openssldir=/usr/local/openssl
# make
# make test
# make install
4 测试
# openssl version
OpenSSL 1.1.0j 20 Nov 2018
出现问题
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
解决
# ln -s /usr/local/lib/libssl.so.1.1 /usr/lib/libssl.so.1.1
# ln -s /usr/local/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.1