Kylin Server V10下OpenSSL安全漏洞离线修复脚本
openssl
传输层安全性/安全套接层及其加密库
项目地址:https://gitcode.com/gh_mirrors/ope/openssl
免费下载资源
·
1.查看操作系统信息
[root@localhost ~]# cat /etc/.kyinfo
2.查看openssl目录信息
[root@localhost openssl]# ls
openssl.tar.gz setup.sh |
openssl.tar.gz是编译的二进制包
3. 编辑setup.sh文件
[root@localhost openssl]# vi setup.sh
###########################################################################################
# @programe : openssl_setup.sh
# @version : 0.0.1
# @function@ :
# @campany :
# @dep. :
# @writer : Liu Cheng Ji
# @date : 2023-03-22
############################################################################################
#!/bin/bash
tar -zxvf ./openssl.tar.gz -C /usr/local/
update-alternatives --install /usr/lib64/libssl.so libssl.so /usr/local/openssl/lib/libssl.so.3 3
update-alternatives --install /usr/lib64/libssl.so.3 libssl.so.3 /usr/local/openssl/lib/libssl.so.3 3
update-alternatives --install /usr/lib64/libcrypto.so libcrypto.so /usr/local/openssl/lib/libcrypto.so.3 3
update-alternatives --install /usr/lib64/libcrypto.so.3 libcrypto.so.3 /usr/local/openssl/lib/libcrypto.so.3 3
if [ -f "/usr/bin/openssl" ]; then
openssl_old_version=`openssl version |awk '{print $2}'`
mv /usr/bin/openssl /usr/bin/openssl_$openssl_old_version
update-alternatives --install /usr/bin/openssl openssl /usr/local/openssl/bin/openssl 3
fi
cp /usr/local/openssl/lib/pkgconfig/libcrypto.pc /usr/lib64/pkgconfig/
cp /usr/local/openssl/lib/pkgconfig/libssl.pc /usr/lib64/pkgconfig
cp /usr/local/openssl/lib/pkgconfig/openssl.pc /usr/lib64/pkgconfig
echo "+--------------------------------------------------------------------------------------------------------------+"
echo "| OPENSSL 3.2.1 Install Sucesses |"
echo "+--------------------------------------------------------------------------------------------------------------+"
4.离线安装
[root@localhost openssl]# ./setup.sh
5.查看系统是否为更新的版本
[root@localhost ~]# openssl version -a
GitHub 加速计划 / ope / openssl
20
1
下载
传输层安全性/安全套接层及其加密库
最近提交(Master分支:2 个月前 )
fd39d1c8
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/25095)
4 个月前
ae87c488
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/25095)
4 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)