eNMS-automation / eNMS

An enterprise-grade vendor-agnostic network automation platform.

Home Page:https://www.enms.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Topology import error ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1129)

SaneiSaya opened this issue · comments

When trying to do an import from LibreNMS that has a self signed cert, the import fails with this error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1129)

Is there a way to disable the SSL verify?

So we can edit the /eNMS/models/services/miscellaneous/topology_import.py and add the verify_ssl=False like this:

def query_librenms(self):
devices = custom_http_get(
f"{self.librenms_address}/api/v0/devices",
headers={"X-Auth-Token": env.get_password(self.librenms_token)},
verify_ssl=False # Disable SSL verification
).json()["devices"]