Merge branch 'default-to-CAs' into 'master'
xmlstream: load default CA store by default See merge request poezio/slixmpp!209
This commit is contained in:
commit
f7a38a028a
1 changed files with 2 additions and 0 deletions
|
@ -809,6 +809,8 @@ class XMLStream(asyncio.BaseProtocol):
|
|||
|
||||
self.ssl_context.verify_mode = ssl.CERT_REQUIRED
|
||||
self.ssl_context.load_verify_locations(cafile=ca_cert)
|
||||
else:
|
||||
self.ssl_context.set_default_verify_paths()
|
||||
|
||||
return self.ssl_context
|
||||
|
||||
|
|
Loading…
Reference in a new issue