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

cert_pem = """
-----BEGIN CERTIFICATE-----
<CERT_PEM_BYTES>
-----END CERTIFICATE-----
"""
issuer_cert_pem = """
-----BEGIN CERTIFICATE-----
<ISSUER_CERT_PEM_BYTES>
-----END CERTIFICATE-----
"""

if is_revoked(PemCert(cert_pem), PemCert(issuer_cert_pem)):
    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.9.tar.gz (7.1 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.9-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pki_tools-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8329322a499f0d73c1b796997b411b9e8743449c8eee6783e1d65224e07cbea2
MD5 8a0d9c39e2ac11b59652bbccedac25cb
BLAKE2b-256 fd93ed893c8064ad3b4ed5cb2b00ca808e0b61697722e108db4e080f43303ac0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pki_tools-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e627e1db99c61c1bd21a5e44506540690198b80a9de8f7be0cf9f6aea84c64
MD5 dc50d87745267e085b69654d0c80248b
BLAKE2b-256 e1f3a81c355071a519fce7514624193ec3f20df28949e67643f8b5124dd586d5

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