申请 ssl 证书

教程都在这里:酷壳

如何免费的让网站启用HTTPS

原来用的证书是阿里云上申请的免费Symantec证书,结果发现chrome上提示警告,以后的版本不会再支持。

Google Chrome正式宣布将不再信任赛门铁克所有SSL证书

教程里使用的Let’s Encrypt 是一个于2015年三季度推出的数字证书认证机构,将通过旨在消除当前手动创建和安装证书的复杂过程的自动化流程,並推廣使萬維網服務器的加密連接無所不在,为安全网站提供免费的SSL/TLS证书。

安装cerbot-nginx,运行报错了

urlib3

ImportError: No module named 'requests.packages.urllib3'

PyOpenssl

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

网上都是说镜像里的软件版本太低,影响了apache cerbot。

更新系统阿里云镜像为163镜像,再把软件都更新了一遍。

然后用pip又把软件所有软件package更新一遍。

yum remove certbot-nginx -y

#更新为163源
cd /etc/yum.repos.d
#backup
mv CentOS-Base.repo CentOS-Base.repo.bak

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo

yum clean all && yum makecache

yum update -y

#升级所有python module
pip2 freeze --local | grep -v '^-e' | cut -d = -f 1  | xargs -n1 pip2 install -U

yum install  certbot-nginx -y

终于好了

Published
Categorized as web

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.