我使用CentOS7和certbot制作ssl证书,但证书的默认目录是“/etc/letsencript/live/first-host”,如何使用“/etc/letsencript/default”更改forst-host目录?
我使用 certbot:
certbot certonly --standalone -d host1 -d host2 --debug
目录:
/etc/letsencript/live/host1/
/etc/letsencrypt/live
目录中的元素只是到/etc/letsencrypt/archive/...
的符号链接。
您可以添加另一个符号链接:
sudo ln -s /etc/letsencrypt/live/host1/ /etc/letsencrypt/default
根据 https://eff-certbot.readthedocs.io/en/stable/using.html#where-are-my-certificates,如果您想要生成的证书,您应该能够使用 cli 选项
--cert-name host1
证书保存在目录/etc/letsencript/live/host1/