def _load_wincerts():
"""Set _WINCERTS to an instance of wincertstore.Certfile."""
global _WINCERTS
certfile = CertFile()
certfile.addstore("CA")
certfile.addstore("ROOT")
atexit.register(certfile.close)
_WINCERTS = certfile
# XXX: Possible future work.
# - Support CRL files? Only supported by CPython >= 2.7.9 and >= 3.4
# http://bugs.python.org/issue8813
# - OCSP? Not supported by python at all.
# http://bugs.python.org/issue17123
# - Setting OP_NO_COMPRESSION? The server doesn't yet.
# - Adding an ssl_context keyword argument to MongoClient? This might
# be useful for sites that have unusual requirements rather than
# trying to expose every SSLContext option through a keyword/uri
# parameter.
评论列表
文章目录