默认分类

Certbot 获取 Let's Encrypt 免费SSL证书

1.查看官方安装文档

2.安装Certbot

sudo apt install certbot

3.查看命令帮助(养成好习惯)

certbot --help

3.配置获取证书 示例

sudo certbot certonly --manual -d xxx.com --agree-tos --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory

需要关心的参数说明

-d 需要配置的域名(可以配置多个)

4.有效期只有3个月

配置中途可以设置邮箱提醒

5.自动续期

参见 certbot-auto

This is just a placeholder img.