标签:静态库 加载 pen config 准备 open lan share lib
openssh依赖于openssl,由于ssl频繁曝出漏洞,牵扯到openssh。而自身也存在漏洞。。。
https://www.openssl.org/source/
https://github.com/openssl/openssl/releases
https://www.openssl.org/source/openssl-1.0.2l.tar.gz
yum -y install perl perl-devel gcc gcc-c++
./config -fPIC --prefix=/usr/local/openssl enable-shared
make -j4
make install -j4
注释:
--prefix:指定安装目录
-fPIC:编译openssl的静态库
enable-shared:编译动态库 #在编译openssh需要用道
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
做软链接
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -sf /usr/local/openssl/include/openssl /usr/include/openssl
echo ‘/usr/local/openssl/lib‘ >> /etc/ld.so.conf
加载共享库
ldd /usr/local/openssl/bin/openssl
ldconfig -v
#版本查看
openssl version -a
引用:
https://yq.aliyun.com/articles/66210
标签:静态库 加载 pen config 准备 open lan share lib
原文地址:http://www.cnblogs.com/xiaochina/p/7485359.html