You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/wechat.joephon.com/fullchain.pem. Your cert
will expire on 2017-02-15. To obtain a new or tweaked version of
this certificate in the future, simply run certbot-auto again. To
non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
鉴于小程序的外接API服务器必须基于https协议, 这两天摸索着先拿团队博客来配置。
目前一切OK,在此梳理梳理下基本流程。
然后 执行下
如果ok,能弹出一个 图形界面 即表示没有问题,继续下一步
配置 nginx
将下列代码黏贴进去,请自行替换 blog.newteo.com为你的网站域名和项目目录(我绑定的域名和项目目录同名)
重启下nginx
执行证书签名
如果出现下面这段字,那说明成功了
修改下刚刚配置的 nginx 文件
将下面三行前面的注释 ‘#’ 去掉
修改后应该是这样
再次重启下nginx
重新访问下配置好的域名 如果自动跳转https 则万事大吉了
这个证书只有90天的有效期,所以到期时还需要手动续签
自动续签
然后填写下面内容(ubuntu 14.X)
ubuntu 16.x
想知道为什么,可以去看老鱼儿的博客,点这里有各种说明
下面罗列下 应该注意的地方
这条命令 可以参考下老鱼儿的博客
多站点 必须要 shared:whatever-SSL:50m; (缘由是不可同名)
如果是ubuntu 14.x 则应该没有问题 如果是16.x 则可能会出现github #2883号issue的问题
可以在命令行敲
解决问题
但如果是ubuntu 16.x 最好直接
上述流程本人只是跑通,并重复配置了多个,显然是ok的,但至于为什么要这样~有待后续探索挖掘
参考资料
老鱼儿的博客
let's encrypt 官网
The text was updated successfully, but these errors were encountered: