ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

Scroll Down

如果你的web使用了Let's Encrypt,那么很可能你需要每三个月更新一下你的ssl证书( 稍晚些会写一个contrab来自动续期)

某日收到了证书快到期的邮件,于是ssh准备更新一下:

执行certbot renew 然后就报错:ImportError: 'pyOpenSSL' module missing required functionality. Try upgrading to v0.14 or newer.

image.png

解决:

尝试了挺多方法,最终在cert-issue找到了解决方法

# rpm -qf /usr/lib64/python2.7/site-packages/OpenSSL/
pyOpenSSL-0.13.1-3.el7.x86_64
# rpm -qf /usr/lib/python2.7/site-packages/urllib3
python-urllib3-1.10.2-2.el7_1.noarch


# rpm --nodeps -e python-urllib3
# rm -rf /usr/lib/python2.7/site-packages/urllib3/
# yum -y install python-urllib3

image.png

image.png