Suppress SSL certificate warnings when ssl_verify=False is set? #240
Comments
Also, I should add that trying to use:
did not make a difference, I still saw the warning messages. |
Hi there, Can you try suppressing warnings like this: import requests
requests.packages.urllib3.disable_warnings() |
Hi @georgijd, |
We'll look into this, it's annoying I know! |
Thanks @georgijd worked for me 👍 |
@sebito91 Has there been any progress? The behaviour of |
Sorry, been afk for a time. Will look at this ASAP and get back to you. |
Any updates regarding this issue? |
Are there any updates on this issue? The below code seems to have fixed the issue, but im wondering if you can create an update. import urllib3 |
@shoother813 yes, this works perfectly to suppress sslwarning |
There are a lot of warnings in curator job like this "InsecureRequestWarning: Unverified HTTPS request is being made..." This is expected behavior by https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html#ssl_no_validate, but it is very annoying, so this fix disabled these warnings, see influxdata/influxdb-python#240 (comment)
What's the best way to tell Flask/Influxdb-Python to trust the self-signed certificate that InfluxDB uses, rather than merely suppressing the warning? |
@Arvanaghi I suppose using the same way as with other SSL/TLS clients, namely import a CA used to produce self-signed certificate. |
I have a question how did you do that, just because I wish I could know how to force python to use https, just because I have different error: |
These InsecureRequestWarning warning messages show up when a request is made to an HTTPS URL without certificate verification enabled. |
both @georgijd solution and |
works for me |
I'm using influxdb-python with an InfluxDB instance with a self-signed SSL certificate.
I have
ssl=True
, andssl_verify=False
is on by default (although I have also tried explicitly setting it):However, I am still seeing this when I attempt to write a point to InfluxDB:
Since
ssl_verify=False
is being set, would it be possible to suppress these warnings please?Whether
ssl_verify=False
should be on by default or not is a separate topic, I guess, but it seems like if it is set to False, then we should respect that, and not print out messages each and every time we make a request =).Thoughts?
The text was updated successfully, but these errors were encountered: