简介

  • 利用openssl生成的自定义证书会出现安全问题验证,可以利用Let's Encrypt证书生成3个月有效期的签发证书,该机构是免费机构。

安装

apt install certbot

生成证书

certbot certonly --standalone -d xxxxx.com
  1. 输入邮箱
  2. 同意条款
  3. 同意是否给邮箱发送"广告"

手动续期

certbot renew
  1. 需要注意不能占用80端口

自动续期

  • 利用crontab定时任务写个更新脚本