github上开源了一个非常好用的Let's Encrypt工具certbot,对常用web服务器提供了一站式的插件
- github地址:https://github.com/certbot/certbot
- certbot地址 https://certbot.eff.org/
- 选择系统环境 ,例如

- 依次执行命令 ,例如
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx
$ sudo certbot --nginx
$ sudo certbot --nginx certonly
$ sudo certbot renew --dry-run
$ certbot renew
- certbot会自动更新nginx配置文件 ,插入支持https的配置.

- 提供一个格式化nginx配置文件的网站: https://nginxbeautifier.com/
- 最后执行
nginx -s reload
网友评论