puppet-openssl icon indicating copy to clipboard operation
puppet-openssl copied to clipboard

feature request: function to read certificate expiration date

Open lesinigo opened this issue 2 years ago • 0 comments

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

lesinigo avatar Aug 09 '22 13:08 lesinigo