Skip to content

There is no way of using system configured ca_certs in Windows #206

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
borlaugen opened this issue Mar 15, 2021 · 0 comments · Fixed by #207
Closed

There is no way of using system configured ca_certs in Windows #206

borlaugen opened this issue Mar 15, 2021 · 0 comments · Fixed by #207
Milestone

Comments

@borlaugen
Copy link
Contributor

On Windows, system configured ca_certs are not picked up by urllib3 since ca_certs is set to point to certifi.where() in RESTClientObject if ssl_ca_certs is parameter is not set on InfluxDBClient.

urllib3 will use system configured ca_certs if ca_certs is set to None. It is my opinion that InfluxDBClient should mimick this behaviour as well.

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Configure system defined ca_cert for a InfluxDB host
  2. Create InfluxDBClient with ssl_ca_cert set to None
  3. Write to api

Expected behavior:
urllib3 configures system defined ca_certs and data is written to influxdb.

Actual behavior:
An ApiException is thrown on line 238 in rest.py because of urllib3 exception:
'SSLError [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'

Specifications:

  • Client Version: 1.14.0
  • InfluxDB Version: 2.0.4 (4e7a59b)
  • Platform: Windows 10
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

Successfully merging a pull request may close this issue.

2 participants