@mrashed-dev correct me if I'm wrong on anything below:
API call used to construct cert_json was only retrieving 100 certificates. If your certificate wasn't within this scope, the hook would fail.
Formatting of $dn value assignment was causing issues with lookup of expiry date. This was causing the hook to renew on every execution when expected behaviour would be to sleep after first creation/renewal.
@mrashed-dev correct me if I'm wrong on anything below:
cert_json
was only retrieving 100 certificates. If your certificate wasn't within this scope, the hook would fail.$dn
value assignment was causing issues with lookup of expiry date. This was causing the hook to renew on every execution when expected behaviour would be to sleep after first creation/renewal.