hllhll / HomeAssistant-EKON-iAircon

EKON iAircon / Tadiran climate component written in Python3 for Home Assistant. On the bases of Gree Climate component for easier interfacing with HASS
GNU General Public License v3.0
14 stars 7 forks source link

Add SSL Certificate checking bypass option #4

Closed hllhll closed 3 years ago

hllhll commented 4 years ago

Since EKON Servers aren't reliable in terms of proper SSL and certificate, add a way so that the user can configure to bypass the SSL Checking (of python).

*NOTE: U Will be prone to an attacker stealing your ekon username&password if you activate this.

leranp commented 4 years ago

I am not an expert, but i think that HA is not supported TLS 1.2 ( that this is the version of the iAircon servers) I have looked at the MQTT component in HA and saw that this is an option to force the connection to work with TLS 1.2 Maybe this is the solution for this problem

hllhll commented 4 years ago

I'm sort of an expert, but not really on HA; I Have not updated my HA for a very long time, and it once worked, now it doesn't. If you check the certificate path you see on some sites that the certificate is either not trusted or an Intermediary certificate requires external download. Also according to this the server supports up to 1.2 and below

And, this plugin doesn't work with MQTT, It's standard HTTPS calls.

leranp commented 4 years ago

take a look in the MQTT component https://github.com/home-assistant/core/blob/dev/homeassistant/components/mqtt/__init__.py And try to force tls 1.2

HawkUser commented 4 years ago

Hi, So far i bypassed the issue by adding "Verify=false" to the Get & Post requests. Not smart move, but working :)