如何使用 certbot 更改实时目录?

e-i*_*128 5 centos7 lets-encrypt certbot

我使用CentOS7和certbot制作ssl证书,但证书的默认目录是“/etc/letsencript/live/first-host”,如何使用“/etc/letsencript/default”更改forst-host目录?

我使用 certbot:

certbot certonly --standalone -d host1 -d host2 --debug
Run Code Online (Sandbox Code Playgroud)

以及目录:

/etc/letsencript/live/host1/
Run Code Online (Sandbox Code Playgroud)

Ste*_*ter 1

目录中的元素/etc/letsencrypt/live只是 的符号链接/etc/letsencrypt/archive/...

您可以添加另一个符号链接:

sudo ln -s /etc/letsencrypt/live/host1/ /etc/letsencrypt/default
Run Code Online (Sandbox Code Playgroud)

  • 什么是你不想符号链接它但有根目录在其他地方?您可以指定 certbot 在另一个 DIR 中查找的选项吗? (7认同)