finish06 / pyunifi

https://unifi-sdn.ubnt.com/
MIT License
223 stars 99 forks source link

SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed #51

Closed riahc3 closed 4 years ago

riahc3 commented 4 years ago

Im getting this error:

requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.111.78', port=8443): Max retries exceeded with url: /api/login (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)'),))

riahc3 commented 4 years ago

Also

requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.111.78', port=8443): Max retries exceeded with url: /api/login (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

maxirus commented 4 years ago

See ssl_verify in the Constructor.

finish06 commented 4 years ago

@riahc3 I am going to close this ticket as setting ssl_verify to false should fix the issue. Please open a new ticket if needed. Thanks.