From c1a35317fe4ebb82bf7d24dc5d8c171d29c9c501 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Mon, 29 Aug 2016 18:23:14 -0300 Subject: [#765] Move combined_ca_bundle to UA initialization With this change we don't have to create the combined_ca_bundle for every user at every login. To support this change, we started migrating away from the LeapCertificate class that was making the LeapProvider setup more brittle --- service/pixelated/register.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/register.py') diff --git a/service/pixelated/register.py b/service/pixelated/register.py index 93b55872..eaa80937 100644 --- a/service/pixelated/register.py +++ b/service/pixelated/register.py @@ -53,8 +53,8 @@ def register( LeapCertificate.set_cert_and_fingerprint(provider_cert, provider_cert_fingerprint) config = LeapConfig(leap_home=leap_home) provider = LeapProvider(server_name) - LeapCertificate(provider).setup_ca_bundle() - srp_auth = SRPAuth(provider.api_uri, LeapCertificate(provider).provider_api_cert) + provider.setup_ca_bundle() + srp_auth = SRPAuth(provider.api_uri, provider.provider_api_cert) if srp_auth.register(username, password): LeapSessionFactory(provider).create(username, password) -- cgit v1.2.3