diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-07-14 14:28:04 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-07-14 14:28:08 +0200 |
commit | a20fe33472698c5c95df799eeaf3a1c0f415e4d5 (patch) | |
tree | 459f8fe809674fb8ba78064adf01ca7d525aac4b /src/leap/bitmask | |
parent | cfd8b50e1d4cfbbf7fa79de4d5797069cef86bb5 (diff) |
[refactor] skip looking for cacert bundle in bitmask
leap.common is going to handle this
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/bonafide/config.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/leap/bitmask/bonafide/config.py b/src/leap/bitmask/bonafide/config.py index 1e6e550..611e9ed 100644 --- a/src/leap/bitmask/bonafide/config.py +++ b/src/leap/bitmask/bonafide/config.py @@ -179,14 +179,11 @@ class Provider(object): self._disco = Discovery('https://%s' % domain) self._provider_config = None + cert_path = None is_configured = self.is_configured() if is_configured: - self._http = HTTPClient(self._get_ca_cert_path()) - else: - # TODO: we distribute our own cert bundle but it's too outdated, - # let's use for now the one from the system - # see: leap.common.ca_bundle.where() - self._http = HTTPClient(cert_path) + cert_path = self._get_ca_cert_path() + self._http = HTTPClient(cert_path) self._load_provider_json() |