linux环境下
1.安装certbot
sudo certbot --nginx
2.申请证书
sudo certbot certonly --nginx
3.续期证书
sudo certbot renew --dry-run
windows环境下
1.使用访问文件权限来生成证书
certbot certonly --standalone
2.使用dns添加后进行生成证书
certbot certonly -d test.com --manual --preferred-challenges dns

3.读取本地文件权限申请
certbot certonly --webroot --webroot-path /var/www/html -d www.123456.com --debug
4.手动续期
certbot certonly -d *.test.com --manual --preferred-challenges dns
本文介绍了如何使用Certbot工具通过访问文件权限生成证书,包括standalone模式,以及通过DNS验证进行自动证书获取。还提及了手动续期的方法,针对多个域名如*d.test.com。

5724

被折叠的 条评论
为什么被折叠?



