From a20fe33472698c5c95df799eeaf3a1c0f415e4d5 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 14 Jul 2017 14:28:04 +0200 Subject: [refactor] skip looking for cacert bundle in bitmask leap.common is going to handle this --- src/leap/bitmask/bonafide/config.py | 9 +++------ 1 file 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() -- cgit v1.2.3