summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/vpn/service.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py
index 36699712..922cfaea 100644
--- a/src/leap/bitmask/vpn/service.py
+++ b/src/leap/bitmask/vpn/service.py
@@ -264,8 +264,11 @@ class VPNService(HookableService):
ca_path = os.path.join(prefix, "ca", "cacert.pem")
if not os.path.isfile(cert_path):
- raise ImproperlyConfigured(
- 'Cannot find client certificate. Please get one')
+ gotcert = yield self.do_get_cert('ignored@%s' % provider)
+ if gotcert['get_cert'] != 'ok':
+ raise ImproperlyConfigured(
+ 'Cannot find client certificate. Please get one')
+
if not os.path.isfile(ca_path):
raise ImproperlyConfigured(
'Cannot find provider certificate. '