aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-17 11:38:25 +0100
committerGravatar jesopo2018-09-17 11:38:40 +0100
commitc3482e78ba15ce5959c737526abc1ce155097ba2 (patch)
tree211ce4e8ab6c1c38d8f7c68dbf2d4bddcc61aaea
parentSupport EXTERNAL sasl authentication (diff)
signature
Add ability to not vertify a server's certificate ('ssl-verify')
-rw-r--r--IRCServer.py3
1 files changed, 2 insertions, 1 deletions
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)