Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Suppress SSL certificate warnings when ssl_verify=False is set? #240

Open
@victorhooi

Description

@victorhooi

I'm using influxdb-python with an InfluxDB instance with a self-signed SSL certificate.

I have ssl=True, and ssl_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:

/usr/local/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions