summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask')
-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 1e6e550f..611e9ed7 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()