MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / from_store

Method from_store

mitmproxy/certs.py:517–529  ·  view source on GitHub ↗
(
        cls,
        path: Path | str,
        basename: str,
        key_size: int,
        passphrase: bytes | None = None,
    )

Source from the content-addressed store, hash-verified

515
516 @classmethod
517 def from_store(
518 cls,
519 path: Path | str,
520 basename: str,
521 key_size: int,
522 passphrase: bytes | None = None,
523 ) -> "CertStore":
524 path = Path(path)
525 ca_file = path / f"{basename}-ca.pem"
526 dhparam_file = path / f"{basename}-dhparam.pem"
527 if not ca_file.exists():
528 cls.create_store(path, basename, key_size)
529 return cls.from_files(ca_file, dhparam_file, passphrase)
530
531 @classmethod
532 def from_files(

Callers 6

memoryleak2.pyFile · 0.80
tstoreFunction · 0.80
test_create_explicitMethod · 0.80
test_chain_fileMethod · 0.80
get_ca_from_filesFunction · 0.80
configureMethod · 0.80

Calls 3

PathClass · 0.85
create_storeMethod · 0.80
from_filesMethod · 0.80

Tested by 3

tstoreFunction · 0.64
test_create_explicitMethod · 0.64
test_chain_fileMethod · 0.64