ssl不求人

找了好多博客,想用cerbot搞好ssl证书,然后实现无忧开启https,发现几乎所有的教程都用不起来,不是这报错就是那报错,于是找到官方文档,选择ubuntu16.04和nginx,三条命令就搞定了,关键时候还是官网靠得住,特别是这种更新特别快的软件。地址如下:

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

有没有一种666的感觉。

 

发帖时间: IT 归档位置:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注