下载

官网下载

wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1g.tar.gz

安装

tar -xvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1

./config --prefix=/home/lfang/opt --libdir=lib no-shared zlib-dynamic
make
make install

设置

export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
echo "export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64" >> ~/.bashrc

版本

openssl version -a