MCPcopy
hub / github.com/pyca/cryptography / _cert_and_issuer

Function _cert_and_issuer

tests/x509/test_ocsp.py:31–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def _cert_and_issuer():
32 cert = _load_cert(
33 os.path.join("x509", "cryptography.io.pem"),
34 x509.load_pem_x509_certificate,
35 )
36 issuer = _load_cert(
37 os.path.join("x509", "rapidssl_sha256_ca_g3.pem"),
38 x509.load_pem_x509_certificate,
39 )
40 return cert, issuer
41
42
43def _generate_root(private_key=None, algorithm=hashes.SHA256()):

Calls 1

_load_certFunction · 0.70

Tested by

no test coverage detected