def _get_root_ca() -> RootCA: return RootCA.load(root_cert_path(cert_dir(Path(omd_root))))
def ca(tmp_path): p = tmp_path / "etc" / "ssl" return CertificateAuthority(root_ca=RootCA.load_or_create( root_cert_path(p), "ca-name"), ca_path=p)
def fixture_ca(tmp_path: Path) -> CertificateAuthority: ca_path = tmp_path / "ca" return CertificateAuthority( root_ca=RootCA.load_or_create(root_cert_path(ca_path), CA_NAME), ca_path=ca_path, )
def _root_cert_path(self) -> Path: return root_cert_path(self._ca_path)