Check if certificate is revoked using the x509 CRL extension
Project description
crl-checker
This small python library checks if a specific certificate is revoked using the CRL defined in the x509 CRL distribution points extension (https://datatracker.ietf.org/doc/html/rfc5280.html#section-4.2.1.13)
Installation
pip install crl-checker
Usage
from crl_checker import check_revoked, Revoked, Error
cert_pem = """
-----BEGIN CERTIFICATE-----
<CERTIFICATE_PEM_BYTES>
-----END CERTIFICATE-----
"""
try:
check_revoked(cert_pem)
except Revoked as e:
print(f"Certificate revoked. Error: {e}")
except Error as e:
print(f"Revocation check failed: {e}")
raise
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crl-checker-0.0.3.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for crl_checker-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0750aad56b57a804d8955a44b853564e67ecd6647933489a36610eac7494c7fc |
|
MD5 | e517b25dff3379b06947bd269d2cf360 |
|
BLAKE2b-256 | fc1b61aca39e6bb6e064cb2ee800d9ce4ed38077a9d8d2dfd157ddd6c4f8b005 |