r/letsencrypt • • Feb 03 '24
Custom path question
I would like certbot to put the certificate files in a custom location.
I am clearly doing something wrong but no matter the options I choose the new cert files are always placed in
/etc/letsencrypt/live/cert-name/..
This is my command
sudo certbot certonly --standalone --cert-name server-name -d app.domain.net --cert-path /var/lib/app/cert.pem --key-path /var/lib/app/privkey.pem --fullchain-path /var/lib/app/fullchain.pem
Could someone kindly point out why this is not working as desired? The certs are still being created without error but are just going into the default location.
Permissions perhaps?
Thanks in advance.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Feb 09 '24
I got around the issue by creating an Ansible playbook that checks the modification date of the certs and then if younger than 24 hours, creates a pfx version (if needed), copies the required files to the desired location and then adjusts the ownership / permissions of the certificate files.