Skip to main content

PKI tools for e.g. checking certificate CRL/OCSP revocation

Project description

Python Badge

PKI tools exposes a high level cryptography API for e.g.:

Docs

Documentation is available at: https://pki-tools.fulder.dev

Quickstart

Install

pip install pki-tools

Usage

Checking OCSP and CRL revocation

from pki_tools import is_revoked
from pki_tools.types import PemCert, Chain

cert_pem = """
-----BEGIN CERTIFICATE-----
<CERT_PEM_BYTES>
-----END CERTIFICATE-----
"""
issuer_cert_pem = """
-----BEGIN CERTIFICATE-----
<ISSUER_CERT_PEM_BYTES>
-----END CERTIFICATE-----
"""
chain = Chain.from_pem(issuer_cert_pem)

if is_revoked(PemCert(cert_pem), chain):
    print("Certificate Revoked!")

For more functions see: Pki Tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pki_tools-0.0.22.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pki_tools-0.0.22-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pki_tools-0.0.22.tar.gz.

File metadata

  • Download URL: pki_tools-0.0.22.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure

File hashes

Hashes for pki_tools-0.0.22.tar.gz
Algorithm Hash digest
SHA256 e818f20f1431ea15f293c532e378d099ead1cb725ccc5be464f5605b543f46cd
MD5 057c09e43fe9f0d2a1546b5e5e252502
BLAKE2b-256 3f7c604d60f76e2d80e7f3b3cf24311fad5a6587c5c3d2e8f4dd2c0bb8e8a7e2

See more details on using hashes here.

File details

Details for the file pki_tools-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: pki_tools-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure

File hashes

Hashes for pki_tools-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 f7feb67993ec1f491b304cf0f30dcef61c7b9524bceec9fb2094a3c76520fa0b
MD5 db4734478390b71e90cf49feed776664
BLAKE2b-256 c51c960146f572ff65509be14681f7aa664729701b3cc2a007e1534a8539f7c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page