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"Ceritifcate revoked. Error: {e}")
except Error as e:
print(f"Revocation check failed. Error: {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.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for crl_checker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e539b945d21c01a76233974924804b1dfca5f9d65d9747b7ed70ddd5bc9fe7 |
|
MD5 | 65e08eddb4b4bfd362e4bbfa75fe23ad |
|
BLAKE2b-256 | 8742af5dffe01ee95c43564d954fe9022ce62e6df14ccbf51924478663e9a9d0 |