letsencrypt

156 阅读1分钟
  1. 阿里云控制台添加域名映射(二级域名)

  2. certbot certonly -d *.域名

在/etc/letsencrypt/live 中生成对应域名的证书文件

  1. 配置/etc/nginx/sites-enabled/default的证书路径,重启 nginx

  2. 续期:

certbot --nginx certonly -n -d 域名