What is the proper way to move where certs are stored?

Originally I tried getting a single domain running with certbot using the following command:

certbot certonly --webroot -w /data/web/www.example.com -d www.example.com

This stored the certificates in /etc/letsencrypt/live/www.example.com/

Now I would like to add a couple subdomains but I would like to have the certificates stored in /etc/letsencrypt/live/example.com/. So I ran the following command:

certbot certonly --webroot -w /data/web/www.example.com -d example.com -d www.example.com -d site2.example.com -d site3.example.com

But, when I chose “Expand”, it put the new certificates in /etc/letsencrypt/live/www.example.com instead of where I wanted.

What is the proper way to move/re-issue them so they are stored in the desired location?


Hi @dheadrick,

Moving them is not a good idea, so you could reissue them.

1.- Backup /etc/letsencrypt/ just in case.
2.- Delete the certificates you want to reissue with command certbot delete
3.- Reissue your cert but this time use the parameter --cert-name to specify the name you want, in your case:

certbot certonly --webroot --cert-name example.com -w /data/web/www.example.com -d example.com -d www.example.com -d site2.example.com -d site3.example.com


That worked great. Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.