librenms/librenms-agent

certificate.py

maselhappy opened this issue · 0 comments

hi,

on certificates which are self-signed the date before and date after will not be read correctly. I see that the certificate has an age of 361 days and no remaining days.

the not before and not after are available.
Validity
Not Before: Dec 27 22:57:35 2020 GMT
Not After : Feb 25 22:57:35 2021 GMT

{"cert_name": "librenms.local", "age": 361, "remaining_days": 0}

br
marcel