MCPcopy Index your code
hub / github.com/RustPython/RustPython / load_default_certs

Method load_default_certs

Lib/ssl.py:528–534  ·  view source on GitHub ↗
(self, purpose=Purpose.SERVER_AUTH)

Source from the content-addressed store, hash-verified

526 warnings.warn("unable to enumerate Windows certificate store")
527
528 def load_default_certs(self, purpose=Purpose.SERVER_AUTH):
529 if not isinstance(purpose, _ASN1Object):
530 raise TypeError(purpose)
531 if sys.platform == "win32":
532 for storename in self._windows_cert_stores:
533 self._load_windows_store_certs(storename, purpose)
534 self.set_default_verify_paths()
535
536 if hasattr(_SSLContext, 'minimum_version'):
537 @property

Calls 3

isinstanceFunction · 0.85