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 request: function to read certificate expiration date #144

Open
lesinigo opened this issue Aug 9, 2022 · 0 comments
Open

feature request: function to read certificate expiration date #144

lesinigo opened this issue Aug 9, 2022 · 0 comments

Comments

@lesinigo
Copy link

lesinigo commented Aug 9, 2022

It would be good to have a function to read certificate expiration date.

My use case would be along these lines:

  • if certificate expires more than X days in the future, do nothing
  • if it expires less than or equal to X days in the future, notify an exec that would delete the certificate file and its key
  • then openssl::certificate::x509 (which I'd mark to require the exec before it, to force correct ordering) would simply re-generate a new key and a new cert
  • then anything subscribing openssl::certificate::x509 would take care of application reloads and the like
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

1 participant