Skip to content

Commit e453f34

Browse files
authored
fix: Use default (system) certificates instead of Mozilla's root certificates (#207)
1 parent 8568097 commit e453f34

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
### Features
44
1. [#203](https://github.com/influxdata/influxdb-client-python/pull/203): Allow configuring client via TOML file.
55

6+
### Bug Fixes
7+
1. [#206](https://github.com/influxdata/influxdb-client-python/pull/207): Use default (system) certificates instead of Mozilla's root certificates (certifi.where())
8+
69
### Documentation
710
1. [#202](https://github.com/influxdata/influxdb-client-python/pull/202): Added an example how to use RxPY and sync batching
811

influxdb_client/rest.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import re
1919
import ssl
2020

21-
import certifi
2221
# python 2 and python 3 compatibility library
2322
import six
2423
from six.moves.urllib.parse import urlencode
@@ -85,8 +84,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None, retries=False):
8584
if configuration.ssl_ca_cert:
8685
ca_certs = configuration.ssl_ca_cert
8786
else:
88-
# if not set certificate file, use Mozilla's root certificates.
89-
ca_certs = certifi.where()
87+
ca_certs = None
9088

9189
addition_pool_args = {}
9290
if configuration.assert_hostname is not None:

0 commit comments

Comments
 (0)