[svc]免费证书认证

 

 

 

1.申请免费域名(12个月)
freenom.com
2.申请免费证书(3个月)
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto certonly --standalone --email work-zone.tk -d work-zone.tk -d www.work-zone.tk

3,修改nginx ssl配置
find / -name "fangka.ml" #找到证书拷贝至/etc/nginx/ssl
修改nginx.conf
...
ssl_certificate /etc/nginx/ssl/fullchain1.pem;
ssl_certificate_key /etc/nginx/ssl/privkey1.pem;
...

  

posted @ 2017-06-07 18:21  _毛台  阅读(304)  评论(0编辑  收藏  举报