Description
When running a MDMessageCmd script for "renewing", "renewed", and "expiring", it would be useful to access the certificate file, e.g. to report the SANs, dates, key type.
For "renewing" and "expiring", the certificate can be obtained from a host (e.g. by openssl s_client
), though this is inconvenient.
For "renewed" - the new certificate is in staging
, but although that is accessible to the unprivileged user (www,apache) the contents of staging
aren't documented.
For "installed", the script runs privileged.
I don't see why the certificates (pubcert*.pem
) in both staging
and 'domains/*can't be protected
g+r,o+r`. They are (or will be) public; there are no secrets to protect.
Can you document at least where to find the certificates? And change the permissions on the certificate files?
Along the same lines, what happened to the environment variables that we passed to scripts (e.g. MD_STORE
, 'MOD_MD_VERSION', ...) back when I was working on event handling? I don't see them in the sources (or the documentation) - did they get dropped in a merge?
(References still in contrib/md_events/md_events
).