解決 Certbot 在 CentOS 7 出現『 ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer. 』

解決方法只需要幾行指令就好,用 pip 或是其他方式都有點麻煩,他的問題就是內建的 pyOpenSSL 太舊,升級就好。

執行:
yum erase pyOpenSSL -y
移除內建的 pyOpenSSL

wget http://ftp.ksu.edu.tw/FTP/CentOS/7/cloud/x86_64/openstack-ocata/common/pyOpenSSL-0.15.1-1.el7.noarch.rpm
下載新版的 pyOpenSSL

rpm -Uvh pyOpenSSL-0.15.1-1.el7.noarch.rpm
執行 rpm 指令安裝

yum install certbot -y
重新安裝一次 Certbot 搞定