Deploying certs

I'm using and i'm trying to figure out the best way to install certs into a location other than /root/ upon install AND renewal. I'm trying to use the --renew-hook when using --issue but it doesn't seem to get executed until the renew:

/root/ --issue --dns dns_pdns -d --dns dns_pdns -d --dns dns_pdns -d --dnssleep 10 --renew-hook "/root/ --install-cert -d --cert-file /etc/ssl/certs/ --key-file /etc/ssl/certs/"

When the above command is executed, the cert is issued but left in /root/ and when renewed via the crontab("/root/"/ --cron --home "/root/"), only then will it execute the --renew-hook that is stored in the cert conf file as Le_RenewHook.

I was expecting --renew-hook to run after issue & renew based on this post:

....but I have to assume that has changed based on what i'm seeing.

What is the best way install certs on issue and renew? I'm hoping to be able to execute a single command to set this in motion. TIA

BTW, i'm using an internal CA so i'm not using real domains in my example

Someone here may offer help but using an internal CA and the client I am not sure this Let's Encrypt forum is the best place.

Neil, the author, sometimes posts here but you would likely get faster response posting an issue on the github for


@robotchicken Are you running as a standalone script or is it part of a appliance package? @Neilpang may be willing to help. He is the author of (as @MikeMcQ has pointed out)... It has worked for me most of the time.

Also you may want to run a post-script to scp the cert to a folder on the server of choice. I found this especially valuable over time to process certs. It can also be used to create a backup for you in case you need it in the future.


please use the --post-hook instead. it will run everytime you "issue" or "renew" a cert.

The "--renew-hook" only runs after a "renew".


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