stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
84 stars 44 forks source link

CERTIFICATE_VERIFY_FAILED for nucleo.neatocloud.com #87

Open d13g0 opened 3 months ago

d13g0 commented 3 months ago

Hello!

I am trying the library and I am running into this issue

HTTPSConnectionPool(host='nucleo.neatocloud.com', port=443): Max retries exceeded with url: /vendors/neato/robots/xxxxxxxxx/messages (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'nucleo.neatocloud.com'. (_ssl.c:1000)")))

here:

https://github.com/stianaske/pybotvac/blob/d14c0384a9dc74d9cf4a39c8c38b530f60fefb78/pybotvac/robot.py#L191

This goes away if you change the verify parameter to False... not sure this is OK though. Thanks.

Not sure if this is related but in my local I commented: https://github.com/stianaske/pybotvac/blob/d14c0384a9dc74d9cf4a39c8c38b530f60fefb78/pybotvac/robot.py#L26

because I am using 2.2.1 and I was getting a AttributeError: module 'urllib3.exceptions' has no attribute 'SubjectAltNameWarning'