Fork me on GitHub

certbot免费SSL证书申请部署

安装

1
2
3
4
5
$ 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

部署

1
$ certbot certonly --cert-name xxxx -d xxxx

第一个xxx是证书名,第二个xxx是为了给哪个证书申请的域名

更新

申请的域名一般都是90天的,所以我们需要更新

1
$ certbot renew

参考:certbot for nginx
以上是基于ubuntu 16.04的linux系统,更多的请参考:certbot官网

禹都一只猫,热爱IT,支持原创