5

I using CentOS7 and certbot for make ssl certificate, but the default directory of certificates is "/etc/letsencript/live/first-host" , how to change the forst-host directory with "/etc/letsencript/default" by example?

I using the certbot:

certbot certonly --standalone -d host1 -d host2 --debug

And the directory:

/etc/letsencript/live/host1/
e-info128
  • 3,727
  • 10
  • 40
  • 57

1 Answers1

1

the elments in the /etc/letsencrypt/live directory are just symlinks to /etc/letsencrypt/archive/....

You can just add another symlink:

sudo ln -s /etc/letsencrypt/live/host1/ /etc/letsencrypt/default
jwhb
  • 516
  • 4
  • 19
Stephan Richter
  • 1,139
  • 11
  • 31
  • 7
    what is you didn't want to symlink it but had the root dir somewhere else? Can you specify an option for certbot to look in another DIR? – ikwyl6 Feb 11 '20 at 05:28
  • Poor solution. I want to BOTH be able to use my own directory name under /live AND have it managed by certbot, e.g. when I later use `certbot delete`. – Szczepan Hołyszewski Mar 02 '23 at 02:46