本文主要是介绍ubnutu server下openssl源码的编译与安装(CVE-2021-3712,libssl.so.3: cannot open shared object file),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
测试服务器ubuntu server 20LTS
openssl ubuntu原版本号
OpenSSL 1.1.1f 31 Mar 2020
拉源码,耗时两分钟(测试环境)
git clone git://git.openssl.org/openssl.git
预编译,耗时十几秒
./Configure
编译,耗时五分钟
make
测试
Result: PASS
编译,耗时三分钟
sudo make install
openssl 版本号
OpenSSL 3.1.0-dev (Library: OpenSSL 3.1.0-dev )
遇到的错误:
openssl: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory.ln -s libssl.so.3 libssl.soexport LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64sudo ldconfig//houyawei
卸载make uninstall
下载源码(生产环境)
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gztar -zxvf xxx./configmakemake testmake install//houyawei
openssl 查看版本号
OpenSSL 1.1.1l 24 Aug 2021
参考链接:
公告-腾讯云腾讯云公告通知https://cloud.tencent.com/announce/detail/1567compilation - Error while loading shared libraries: /usr/local/lib64/libssl.so.1.1 - Stack Overflow
https://stackoverflow.com/questions/42828083/error-while-loading-shared-libraries-usr-local-lib64-libssl-so-1-1
这篇关于ubnutu server下openssl源码的编译与安装(CVE-2021-3712,libssl.so.3: cannot open shared object file)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!