Letsencrypt 笔记
直接部署(不推荐)
安装 certbot
-
在 alpine linux 中安装 certbot
1apk add --no-cache certbot openssl -
注册
1certbot register --register-unsafely-without-email --agree-tos
申请常规域名证书
-
申请 ssl 证书,有效期 90 天
1 2 3 4 5certbot certonly -n -d x.x.com --standalone # 证书文件生成到 /etc/letsencrypt/live/x.x.com/ 下 # 参数 -d 可以使用多次来指定多个域名,也可以在一个 -d 参数中使用逗号分隔多个域名 # 参数 --cert-name 可以指定证书文件的父级目录名字(替换默认的 x.x.com) -
续签 ssl 证书