Skip to content

Commit

Permalink
fix: Use default (system) certificates instead of Mozilla's root cert…
Browse files Browse the repository at this point in the history
…ificates (#207)
  • Loading branch information
borlaugen authored Mar 16, 2021
1 parent 8568097 commit e453f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
### Features
1. [#203](https://github.com/influxdata/influxdb-client-python/pull/203): Allow configuring client via TOML file.

### Bug Fixes
1. [#206](https://github.com/influxdata/influxdb-client-python/pull/207): Use default (system) certificates instead of Mozilla's root certificates (certifi.where())

### Documentation
1. [#202](https://github.com/influxdata/influxdb-client-python/pull/202): Added an example how to use RxPY and sync batching

Expand Down
4 changes: 1 addition & 3 deletions influxdb_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import re
import ssl

import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
Expand Down Expand Up @@ -85,8 +84,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None, retries=False):
if configuration.ssl_ca_cert:
ca_certs = configuration.ssl_ca_cert
else:
# if not set certificate file, use Mozilla's root certificates.
ca_certs = certifi.where()
ca_certs = None

addition_pool_args = {}
if configuration.assert_hostname is not None:
Expand Down

0 comments on commit e453f34

Please sign in to comment.