nautobot / pynautobot

Nautobot Python SDK
https://pynautobot.readthedocs.io/en/latest/index.html
Apache License 2.0
36 stars 32 forks source link

HTTPS certificate verification #140

Closed gygetho closed 10 months ago

gygetho commented 10 months ago

During instantiation of API class, self._validate_version() is executed. Before this private method was introduced, the ssl verification could be set via the API class attribute "http_session". This is not working anymore, since the private self._validate_version() method uses defaults of Requests module which is verify=True. So, if there is an self-signed cert on nautobot server, it will fail.

It would be great to have an parameter to toggle ssl-verification directly on API-Object