Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
I see that you are trying to renew this domain.
Doesn't that mean that you initially issued it using acme.sh and TLS-ALPN?
If so, you should already be aware of the intricacies involved.
If not, then there may be a problem with acme.sh's recollection of that issuance.
Thank you for your reply, the problem was I didn't stop nginx before kicking off acme.sh.
Issuing the first certificate wasn't a problem. I didn't need a secure connection for this.
After the certificate was in place, I opened up port 443.
I just wasn't able to trouble shoot this from the acme.sh.log.
Just reading on your suggestion, it states the hooks are only accepted on issuing a new certificate.
It's not clear (At least to me) if this will also work when renewing the certificate.
That is correct but you can use --issue parameter to "renew" your existing cert and you can also modify the conf manually not needed to execute the --issue command again.
Here the doc (pay attention to bold):
Those hooks are only accepted by the --issue command, but will be saved and apply to --renew or --cron commands as well.
Yes and no acme.sh encode the command in base64 and use delimiters.
In this example we will use systemctl stop nginx on pre-hook, and systemctl start nginx on post-hook. The domain is cloud.siegert.nl and the acme.sh cert home is ~/.acme.sh/
Just edit file ~/.acme.sh/cloud.siegert.nl/cloud.siegert.nl.conf and replace Le_PreHook='' with the ouput of below command: