joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
313 stars 88 forks source link

Support for PKCS12/PFX certificates #125

Closed EnriqueJoseSanjuaneloRobles-TomTom closed 1 year ago

EnriqueJoseSanjuaneloRobles-TomTom commented 1 year ago

Issue https://github.com/joe-elliott/cert-exporter/issues/123

In case a certificate in PKCS12 format is specified (using the same extension as PEM formats), the helper will try to decode its content (given the PEM decoding failed). A test case is included is also added as well.