MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / load_verify_locations

Method load_verify_locations

pymongo/pyopenssl_context.py:317–324  ·  view source on GitHub ↗

Load a set of "certification authority"(CA) certificates used to validate other peers' certificates when `~verify_mode` is other than ssl.CERT_NONE.

(
        self, cafile: Optional[str] = None, capath: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

315 self._ctx.check_privatekey()
316
317 def load_verify_locations(
318 self, cafile: Optional[str] = None, capath: Optional[str] = None
319 ) -> None:
320 """Load a set of "certification authority"(CA) certificates used to
321 validate other peers' certificates when `~verify_mode` is other than
322 ssl.CERT_NONE.
323 """
324 self._ctx.load_verify_locations(cafile, capath)
325
326 def _load_certifi(self) -> None:
327 """Attempt to load CA certs from certifi."""

Callers 2

_load_certifiMethod · 0.95
get_ssl_contextFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected