前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >python3 openssl_python3.7——openssl升级「建议收藏」

python3 openssl_python3.7——openssl升级「建议收藏」

作者头像
全栈程序员站长
发布2022-07-28 21:50:37
2.3K0
发布2022-07-28 21:50:37
举报

大家好,又见面了,我是你们的朋友全栈君。

Python3.7使用的openssl为1.0.2版本或1.1以上的版本

Centos .9安装openssl 1.1版本

[root@python3_7 soft]# mkdir –p /soft

[root@python3_7 soft]# cd /soft

[root@python3_7 soft]# wget https://www.openssl.org/source/openssl-1.1.0j.tar.gz

更新zlib

[root@python3_7 soft]# yum install -y zlib

[root@python3_7 soft]# tar zxvf openssl-1.1.0j.tar.gz

[root@python3_7 soft]# cd openssl-1.1.0j

[root@python3_7 openssl-1.1.0j]# ./config shared zlib

[root@python3_7 openssl-1.1.0j]# make

[root@python3_7 openssl-1.1.0j]# make install

[root@python3_7 openssl-1.1.0j]# mv /usr/bin/openssl /usr/bin/openssl.bak

[root@python3_7 openssl-1.1.0j]# mv /usr/include/openssl /usr/include/openssl.bak

[root@python3_7 openssl-1.1.0j]# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

[root@python3_7 openssl-1.1.0j]# ln -s /usr/local/ssl/include/openssl /usr/include/openssl

在/etc/ld.so.conf文件中写入openssl库文件的搜索路径

[root@python3_7 openssl-1.1.0j]# echo “/usr/local/lib64” >> /etc/ld.so.conf

使修改后的/etc/ld.so.conf生效,

[root@python3_7 openssl-1.1.0j]# ldconfig -v

查看是否升级成功

[root@python3_7 openssl-1.1.0j]# openssl version

OpenSSL 1.1.0j 20 Nov 2018

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129210.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022年4月1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档