Centos7 免费SSL证书Let’s Encrypt(certbot)安装

 

 

Centos 7.2

sudo yum install epel-release

sudo yum install certbot

修改你的服务器配置,在server模块添加:

 

重启nginx

sudo certbot certonly –webroot -w /usr/local/nginx/html/ -d www.mindg.cn

配置证书:

 

nginx –s reload

配置自动更新:

302 * *1 /usr/bin/certbot renew >>/var/log/le-renew.log

 

发表评论