部署let’t Encrypt证书

之前安装wordpress的时候根据教程配置了自己生成的证书,慢慢才发觉所有浏览器都不认,访问都要报错,搞得我的博客像流氓网站了。

今天终于把证书装上了。这是安装完成的提示,现在访问已经是绿色的锁了


-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://ooe.me
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=ooe.me
-------------------------------------------------------------------------------
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/ooe.me/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/ooe.me/privkey.pem
Your cert will expire on 2018-09-17. To obtain a new or tweaked
version of this certificate in the future, simply run
letsencrypt-auto again with the "certonly" option. To
non-interactively renew *all* of your certificates, run
"letsencrypt-auto renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- 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

我参考的是这篇文章

http://bbs.qcloud.com/thread-12061-1-1.html

这篇文章里还有证书自动更新的脚本,还没尝试。

 

还有这篇文章:

http://bbs.qcloud.com/thread-12059-1-1.html

 

吐槽下:

 

这里用的方法跟官方的还是不太一样,

第一步安装git, 这个应该是项目管理

然后clone一个git上面写好的自动部署项目

最后运行一下,填入几个关键信息,就完工了。

这个方法很方便,但是装了一大堆东西,git,  pathon,

按装一个证书,居然用到这么多东西。

 

Leave a Reply

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