prefix = os.path.normpath(sys.prefix)
default_cert = os.path.join(prefix, "ssl", "cert.pem")
if os.path.isfile(default_cert):
self.load_verify_locations(default_cert)
else:
self.set_default_verify_paths()
While this seems to work, my lack of knowledge in all things related to security and ssl in particular makes me worry to patch anything in there. Is this a sane approach ? If not, is there a better way ?
Thank you,
David