xmlstream: load default CA store by default

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-07-11 14:46:00 +02:00
parent 5ceb48bbcd
commit 90e79af18a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -800,6 +800,8 @@ class XMLStream(asyncio.BaseProtocol):
self.ssl_context.verify_mode = ssl.CERT_REQUIRED self.ssl_context.verify_mode = ssl.CERT_REQUIRED
self.ssl_context.load_verify_locations(cafile=ca_cert) self.ssl_context.load_verify_locations(cafile=ca_cert)
else:
self.ssl_context.set_default_verify_paths()
return self.ssl_context return self.ssl_context