Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow executing command post TLS cert renewal #4114

Closed
artemislena opened this issue Apr 15, 2021 · 2 comments
Closed

Feature: Allow executing command post TLS cert renewal #4114

artemislena opened this issue Apr 15, 2021 · 2 comments

Comments

@artemislena
Copy link

It would be nice if there was a directive that allowed one to automatically execute a command (that is forked into the background) whenever a certificate is renewed. This would be useful for various purposes:

  • One may distribute the cert to other machines if those run other things on the same domain
  • One may check that the CT chain is valid so far and no other certs have been issued for the domain other than the ones one issued oneself (while I'm not aware of such a tool existing, I'm considering writing a program or script that does this)
  • One may update TLSA records

So, what I'm picturing is something like this:

somedomain.com {
    # Some other config
    tls {
        post_renewal_exec /path/to/myscript.sh
    }
}

It may be that this requires changes to the CertMagic library. I'm not too familiar with the entire architecture myself, so I thought I'd ask here first.

@francislavoie
Copy link
Member

francislavoie commented Apr 15, 2021

Duplicate of #3643

It's most likely we'll implement a generalized event system that this will plug into, emitting events on issuance/renewal etc

@artemislena
Copy link
Author

Oh. I just searched for tls in the issues, so didn't see that one. I'll close this, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants