From f219af81be352d583337006b92d0ec5e57dcacb5 Mon Sep 17 00:00:00 2001 From: Janus Date: Wed, 21 Feb 2018 11:32:49 +0100 Subject: [PATCH] asyncio: try CA signed certificate first, previous behaviour totally broken --- lib/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/interface.py b/lib/interface.py index 3f2516f2..95c30f5c 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -169,9 +169,9 @@ class Interface(util.PrintError): if self.use_ssl: cert_path = os.path.join(self.config_path, 'certs', self.host) if not os.path.exists(cert_path): - temporary_path = await self._save_certificate(cert_path, False) + temporary_path = await self._save_certificate(cert_path, True) if not temporary_path: - temporary_path = await self._save_certificate(cert_path, True) + temporary_path = await self._save_certificate(cert_path, False) if not temporary_path: raise ConnectionError("Could not get certificate on second try")