How to test renew hooks?

I can use --dry-run to test certificate creation/renewal and it works great. I noticed however that at the end of the run I get the message

Dry run: skipping deploy hook command: <the command I use in --renew-hook>

Is there a way to force the execution of the renew hook in a test mode? (= the certificate retrieval is dry ran, but then the hook is executed)

Hi @WoJ

check

--test-cert
--staging
--server https://acme-staging-v02.api.letsencrypt.org/directory
  • certonly should work. That uses the test system.

But use always certonly. If not, the fake certificate is installed.