xmlstream: load default CA store by default
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
5ceb48bbcd
commit
90e79af18a
1 changed files with 2 additions and 0 deletions
|
@ -800,6 +800,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