certos7 安裝使用certbot遇到的問題

問題1:python

ImportError: cannot import name UnrewindableBodyError

網上搜索了一下,發現是python的軟件包urlib3的問題,須要卸載重裝centos

# sudo pip uninstall urllib3 
# sudo yum remove python-urllib3 
# sudo pip install urllib3 
# sudo yum install python-urllib3

問題2:ui

ImportError: 'pyOpenSSL' module missing required functionality

問題緣由是openssl包的版本過低了,centos7默認是0.13,cert要求最低0.14.網上搜到的一個解決方案是經過rpm包升級到0.15url

rpm -Uvh http://cbs.centos.org/kojifiles/packages/pyOpenSSL/0.15.1/1.el7/noarch/pyOpenSSL-0.15.1-1.el7.noarch.rpm

若是你這麼作了,那麼你會遇到另一個問題:centos7

AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

網上找到這個問題的解決方法是讓你降級到centos7的默認版本。。。。。。。。。
終極解決方案:升級到0.16或者更高版本code

rpm -Uvh https://cbs.centos.org/kojifiles/packages/pyOpenSSL/16.2.0/3.el7/noarch/python2-pyOpenSSL-16.2.0-3.el7.noarch.rpm
相關文章
相關標籤/搜索