Skip to content

File permissions and MDMessageCmd #378

Open
@tlhackque

Description

@tlhackque

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions