Method
from_store
(
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( |