summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-07-14 14:28:04 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-07-14 14:28:08 +0200
commita20fe33472698c5c95df799eeaf3a1c0f415e4d5 (patch)
tree459f8fe809674fb8ba78064adf01ca7d525aac4b
parentcfd8b50e1d4cfbbf7fa79de4d5797069cef86bb5 (diff)
[refactor] skip looking for cacert bundle in bitmask
leap.common is going to handle this
-rw-r--r--src/leap/bitmask/bonafide/config.py9
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()