amimof / node-cert-exporter

An SSL certificate Prometheus exporter
Apache License 2.0
170 stars 33 forks source link

cer-cert Format not readble #88

Open amenJb opened 8 months ago

amenJb commented 8 months ago

Hi guys,

First thx for that nice exporter it makes my Cert monitoring much easier.

One think, is it possible make it able to read cer and cert format.

Even i see in the code : extensions = []string{".pem", ".crt", ".cert", ".cer", ".pfx"}

But i get always output error : glog.Warningf("Couldn't find a CERTIFICATE block in %s", path)

As a workaround i convert cer and cert certificates to pem

Thx guys.

amimof commented 8 months ago

Hi @amenJb Thank you for the feedback, I appreciate it.

Can you provide the content of the files?

amenJb commented 8 months ago

Hi @amimof, if you mean the script file, i speak about "exporter.go" line 19, and the error in line 147.