From e9a518e93edbde80ffeb1b9538175ce4bfac022b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Sun, 13 May 2018 20:30:31 +0200 Subject: [PATCH] api: Warn when SSL/TLS validation is disabled. --- zulip/zulip/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 805a1b5..dc4a425 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -392,6 +392,9 @@ class Client(object): self.client_name = client if insecure: + logger.warning('Insecure mode enabled. The server\'s SSL/TLS ' + 'certificate will not be validated, making the ' + 'HTTPS connection potentially insecure') self.tls_verification = False # type: Union[bool, str] elif cert_bundle is not None: if not os.path.isfile(cert_bundle):