I'm using acme.sh and i'm trying to figure out the best way to install certs into a location other than /root/acme.sh 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/.acme.sh/acme.sh --issue --dns dns_pdns -d bobtest01.internaldomain.com --dns dns_pdns -d bobtest02.internaldomain.com --dns dns_pdns -d bobtest03.internaldomain.com --dnssleep 10 --renew-hook "/root/.acme.sh/acme.sh --install-cert -d bobtest01.zooxlabs.com --cert-file /etc/ssl/certs/bobtest01.internaldomain.com.pem --key-file /etc/ssl/certs/bobtest01.internaldomain.com.key"
When the above command is executed, the cert is issued but left in /root/.acme.sh and when renewed via the crontab("/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"), 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