Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning certificate #102

Open
ZencoreCZ opened this issue Nov 1, 2021 · 4 comments
Open

Warning certificate #102

ZencoreCZ opened this issue Nov 1, 2021 · 4 comments

Comments

@ZencoreCZ
Copy link

error is where please?

/MiTemperature2# python3 LYWSD03MMC.py -d -c 1 --name Exam --httpcallback "https://mydomain.com/myscript?name={sensorname}&temp={temperature}&hum={humidity}&bat={batteryLevel}

InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

@JsBergbau
Copy link
Owner

It looks like that any SSL certificate is accepted and thats why the warning is thrown. Hope @mvdklip can explain it more.

@mvdklip
Copy link
Contributor

mvdklip commented Nov 5, 2021

@JsBergbau is right. The request is being made with the verify=False flag so that people running their home automation on a self generated certificate can use it. The requests library issues a warning when doing this. It's not an error.

@mvdklip
Copy link
Contributor

mvdklip commented Nov 5, 2021

If you really wanted to hide the warning which I don't really recommend you could have a look here:

https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests

But that requires changes to the Python code.

@JsBergbau
Copy link
Owner

Thanks for the info. So it makes sense, that there is a warning displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants