Add ability to not vertify a server's certificate ('ssl-verify')
This commit is contained in:
parent
fad61c2664
commit
c3482e78ba
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue