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:
Link Mauve 2022-07-12 13:24:32 +02:00
commit f7a38a028a

View file

@ -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