折腾人啊!centos7安装lets enctypt运行不了报openssl的错误

报错信息

  File "/usr/lib/python2.7/site-packages/acme/client.py", line 40, in <module>
    urllib3.contrib.pyopenssl.inject_into_urllib3()
AttributeError: 'module' object has no attribute 'pyopenssl'

研究发现基本是pyopenssl的问题

参考https://serverfault.com/questions/830284/certbot-for-letsencrypt-missing-pyopenssl-module

以下方式对我有用

I experienced this same issue twice on 2 separate Centos7 systems in
the last 2 months. This is what worked for me:

yum remove pyOpenSSL [This will remove certbot installed via epel] yum
install openssl-devel python-devel [May or may not actually be
necessary] pip install certbot pip install certbot-apache After
completing these steps I was able to successfully renew my
certificates with certbot.

我的解决方式

[root@localhost ~]# sudo yum remove pyOpenSSL
[root@localhost ~]# sudo pip install openssl-devel python-devel 
[root@localhost ~]# sudo yum install certbot
[root@localhost ~]# sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No certs found.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值