certbot certonly
命令 , 生成证书公私钥. 示例: (支持多域名, )
certbot certonly --webroot -w /home/sites/webroot1 -d domain1.com -w /home/sites/webroot2/ -d www.domain2.com
此过程中 Certbot 会创建随机文件,然后远程验证域名及服务控制权
新生成的证书及相关文件,将生成到 /etc/letsencrypt 路径下。
drwx------ 3 root root 4096 Aug 8 23:11 accounts
drwx------ 3 root root 4096 Aug 8 23:16 archive
drwxr-xr-x 2 root root 4096 Aug 8 23:16 csr
drwx------ 2 root root 4096 Aug 8 23:30 keys
drwx------ 3 root root 4096 Aug 8 23:16 live #nginx 可用证书目录
drwxr-xr-x 2 root root 4096 Aug 8 23:25 renewal