From c3482e78ba15ce5959c737526abc1ce155097ba2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Sep 2018 11:38:25 +0100 Subject: [PATCH] Add ability to not vertify a server's certificate ('ssl-verify') --- IRCServer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRCServer.py b/IRCServer.py index a94567b9..46856473 100644 --- a/IRCServer.py +++ b/IRCServer.py @@ -87,7 +87,8 @@ class Server(object): context.options |= ssl.OP_NO_TLSv1 context.load_default_certs() - context.verify_mode = ssl.CERT_REQUIRED + if self.get_setting("ssl-verify", True): + context.verify_mode = ssl.CERT_REQUIRED client_certificate = self.bot.config.get("ssl-certificate", None) client_key = self.bot.config.get("ssl-key", None)