ssut / wideq-js

A Node.JS(TypeScript) port of wideq, a reverse-engineered client for the LG SmartThinQ API
https://ssut.github.io/wideq-js/
MIT License
18 stars 7 forks source link

Server used for authentication is too insecure for modern node versions #13

Closed ncovercash closed 4 years ago

ncovercash commented 4 years ago

I can not seem to get a line in the source where this happens, however, once I paste in my resulting URL I get an unsupported protocol error:

Error: write EPROTO 139732908562304:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1942:

From research, this seems to be a SSL protocol mismatch. If I add --tls-min-v1.0 when I run node (e.g. node --tls-min-v1.0 --trace-warnings cli.js auth the warning is not present. Is there any way to get around this without this argument?

bayramog commented 4 years ago

You can see this one.

ncovercash commented 4 years ago

Alright, thanks!