openssl

查看版本号

openssl version

centos安装基础编译环境

sudo yum install -y gcc make zlib-devel openssl-devel pam-devel

debian/ubuntu安装编译环境

apt-get update
apt-get install build-essential libpam0g-dev libssl-dev -y

编译安装

wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz --no-check-certificate
tar -xvf openssl-1.1.1w.tar.gz
mv openssl-1.1.1w/ /usr/local/src
cd /usr/local/src/openssl-1.1.1w/
./config --prefix=/usr
make && make install


#wget  https://www.openssl.org/source/old/3.0/openssl-3.0.12.tar.gz