Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
828 stars 67 forks source link

SSL self signed certificate local server error #79

Closed stonza closed 6 years ago

stonza commented 6 years ago

Using the HTTP Web-hook I get this error

[Error] Amazon Dash Exception (ExecuteError):
Exception on request to https://127.0.0.1:4343/json.htm?type=command&param=switchlight&idx=30010&switchcmd=On: HTTPSConnectionPool(host='127.0.0.1', port=4343): Max retries exceeded with url: /json.htm?type=command&param=switchlight&idx=30010&switchcmd=On (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),))

trying to connect to a local https server with a self signed certificate. I need the ability to point at my client cert (that I have locally).

I used to do it this way using "requests" in python

requests.get(https_url, verify=path_to_pem)

Thank you for the effort you are putting in this project :-)

Nekmo commented 6 years ago

You can add your self-signed certificate to the system certificates folder. However, an option to ignore ssl errors or add a folder can be interesting.

stonza commented 6 years ago

Thanks, I try