hthiery / python-fritzhome

Python Library to access AVM Fritz!Box homeautomation
MIT License
52 stars 37 forks source link

Provide perameter for skipping ssl verification #65

Closed cmeissner closed 2 years ago

cmeissner commented 2 years ago

As any fritzbox is delivered with self-signed certificates it will be useful to have an option to skip certificate verification in login method.

Currently fritzhome -f https://fritz.box -u \<user> -p \<pass> list leads to the following error:

...
requests.exceptions.SSLError: HTTPSConnectionPool(host='fritz.box', port=443): Max retries exceeded with url: /login_sid.lua?security%3Acommand%2Flogout=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1129)')))

Using http is not a really secure option as the login data can be sniffed in that case.