Skip to content

Set InfluxDBClient verify_ssl parameter via config file #142

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

Closed
sth05 opened this issue Aug 9, 2020 · 3 comments · Fixed by #143
Closed

Set InfluxDBClient verify_ssl parameter via config file #142

sth05 opened this issue Aug 9, 2020 · 3 comments · Fixed by #143
Labels
enhancement New feature or request
Milestone

Comments

@sth05
Copy link

sth05 commented Aug 9, 2020

I am currently using the verify_ssl parameter that was implemented in the current master branch by the feature request from: #134.

Proposal:
A verify_ssl option should be added to the InfluxDbClient.from_config_file method.

Current behavior:
The verify_ssl option in the config file is ignored which results in an error further down the line when an self signed certificate is used.

Desired behavior:
InfluxDbClient.from_config_file recognizes the verify_ssl option and sets the parameter accordingly

Alternatives considered:
I have tried the following code with no success:

client = InfluxDBClient.from_config_file("config.ini")
client.api_client.configuration.verify_ssl = False

Use case:
InfluxDBCLient.from_config_file is not usable with a self signed certificate

@bednar
Copy link
Contributor

bednar commented Aug 10, 2020

Hi @HermannSt,

thanks for using our client.

Nice catch, I will fix it.

Regards

@bednar
Copy link
Contributor

bednar commented Aug 10, 2020

I've prepared PR #143.

@bednar bednar added this to the 1.10.0 milestone Aug 11, 2020
@bednar
Copy link
Contributor

bednar commented Aug 11, 2020

Hi @HermannSt ,

The issue is fixed in 1.10.0 milestone.

If you would like to use a dev version then install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@master

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants