Certificate.py - ssl.SSLCertVerificationError
AnaelMobilia opened this issue · 0 comments
AnaelMobilia commented
Hello,
When I run manually the /etc/snmp/certificate.py file configured to monitor an already expired certificate, error is thrown :
Traceback (most recent call last):
File "/etc/snmp/certificate.py", line 55, in <module>
certificate_data, error_msg = get_certificate_data(domain['fqdn'], domain['port'])
File "/etc/snmp/certificate.py", line 28, in get_certificate_data
conn.connect((domain, port))
File "/usr/lib/python3.7/ssl.py", line 1150, in connect
self._real_connect(addr, False)
File "/usr/lib/python3.7/ssl.py", line 1141, in _real_connect
self.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1056)
LibreNMS poller display an error :
#### Load poller module applications ####
certificate:-3:Invalid JSON