ubuntu编译安装openssl
20220329
仅用于 python编译 3.0.2
按照python官网提示 https://docs.python.org/3/using/unix.html?#custom-openssl
su root #不然权限不够 cd /usr/src wget https://www.openssl.org/source/openssl-3.0.2.tar.gz --no-check-certificate tar zxvf openssl-3.0.2.tar.gz cd openssl-3.0.2/
./config \
--prefix=/usr/local/custom-openssl \
--libdir=lib \
--openssldir=/etc/ssl
make -j1 depend
make -j8
make install_sw
全局安装
1.1.1X
参考 http://blog.bccn.net/%E9%9D%99%E5%A4%9C%E6%80%9D/66642
su root #不然权限不够 cd /usr/src wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz --no-check-certificate tar zxvf openssl-1.1.1n.tar.gz cd openssl-1.1.1n/ ./config shared --prefix=/usr/local/ make -j 4
make install cp libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/ cp libssl.so.1.1 /usr/lib/x86_64-linux-gnu/ rm /usr/bin/openssl ln -s /usr/local/bin/openssl /usr/bin/openssl openssl version
—————————————