【发布时间】:2021-01-26 00:05:43
【问题描述】:
我正在寻找一种自动添加新域的方法。
我要加erzgebirgstraverse.de
来自https://certbot.eff.org/docs/using.html#changing-a-certificate-s-domains:
...扩展证书包含的域集...
certbot certonly --cert-name example.com -d example.org,www.example.org
我找到了列出所有现有证书的方法:
hz1:/etc/apache2# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: hz1.yz.to
Serial Number: 345a3c36ff032d325e78120c98d8ddc71f7
Domains: hz1.yz.to thomas-guettler.de
Expiry Date: 2021-03-23 09:19:00+00:00 (VALID: 80 days)
Certificate Path: /etc/letsencrypt/live/hz1.yz.to/fullchain.pem
Private Key Path: /etc/letsencrypt/live/hz1.yz.to/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
现在我看到了现有的域,可以添加带有-d 标志的erzgebirgstraverse.de:
hz1:/etc/apache2# certbot certonly --cert-name hz1.yz.to -d hz1.yz.to,thomas-guettler.de,erzgebirgstraverse.de
但是现在一个交互式脚本开始了:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Apache Web Server plugin (apache)
2: Spin up a temporary webserver (standalone)
3: Place files in webroot directory (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-3] then [enter] (press 'c' to cancel):
systemctl reload apache2
有没有办法添加一个新域(替代名称)但非交互式?
【问题讨论】:
-
你试过 -n 标志来运行非交互吗?
标签: ssl lets-encrypt