CertificateRevocationList ¶
Bases: InitCryptoParser
Represents a certificate revocation list (CRL).
| Attributes: |
|
|---|
tbs_bytes
property
¶
tbs_bytes: bytes
Return the bytes to be signed of the CRL.
| Returns: |
|
|---|
from_cryptography
classmethod
¶
from_cryptography(crypto_crl: x509.CertificateRevocationList) -> CertificateRevocationList
Create a CertificateRevocationList object from a cryptography CertificateRevocationList.
| Parameters: |
|
|---|
| Returns: |
|
|---|
from_uri
classmethod
¶
from_uri(uri: str, cache_time_seconds: int = CACHE_TIME_SECONDS) -> CertificateRevocationList
Loads CertificateRevocationList from a URI.
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_revoked ¶
get_revoked(cert_serial: int) -> Optional[RevokedCertificate]
Get a revoked certificate by serial number.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sign ¶
sign(private_key: CryptoPrivateKey, algorithm: Optional[SignatureAlgorithm] = None) -> None
Sign the CRL with the provided private key and algorithm.
| Parameters: |
|
|---|
RevokedCertificate ¶
Bases: CryptoParser
Represents a revoked certificate.
| Attributes: |
|
|---|
from_cryptography
classmethod
¶
from_cryptography(crypto_obj: x509.RevokedCertificate) -> RevokedCertificate
Create a RevokedCertificate object from a cryptography RevokedCertificate.
| Parameters: |
|
|---|
| Returns: |
|
|---|