Loader
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.crypto.certificates.loader
¶
Classes¶
Functions¶
load_certificate_from_pem
¶
load_certificate_from_pem(
cert_pem_or_uri: str, key_pem_or_uri: str | None = None
) -> tuple[
CertificateBase,
x509.Certificate,
rsa.RSAPrivateKey | ec.EllipticCurvePrivateKey | None,
str,
str | None,
]
Load a certificate and optionally its private key from PEM data or file URIs.
Returns:
| Type | Description |
|---|---|
tuple[CertificateBase, Certificate, RSAPrivateKey | EllipticCurvePrivateKey | None, str, str | None]
|
Tuple of (CertificateBase, X509Certificate, private_key, cert_pem, key_pem) |
Source code in provide/foundation/crypto/certificates/loader.py
load_from_uri_or_pem
¶
Load PEM data either directly from a string or from a file URI.