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;
...

  

相关文章:

  • 2021-08-04
  • 2021-12-11
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-12-06
  • 2021-12-02
  • 2021-05-07
  • 2021-09-07
  • 2021-04-16
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案