我只是想将域名test.example.com
添加到已有的证书example.com
中。如何向现有证书添加域名并替换旧证书?
我尝试了以下几个命令
./letsencrypt-auto certonly --cert-path /etc/letsencrypt/archive/example.com --expand -d test.example.com
./letsencrypt-auto certonly -d example.com --expand -d test.example.com
结果:两者都在新文件夹test.example.com-0001中创建了全新的证书
./letsencrypt-auto certonly --renew-by-default --expand -d test.example.com
结果:错误,文件夹 test.example.com 已存在。
./letsencrypt-auto renew --expand -d orange.fidka.com
结果:错误,只有在我的证书过期时才能进行更新。
certbot --expand
,我认为更接近此问题所询问的内容。 - Jesse Reza Khorasanee