ocspbuilder
Creates and signs online certificate status protocol (OCSP) requests and responses for X.509 certificates
What it is and what it does
ocspbuilder is a Python library for constructing and signing OCSP (Online Certificate Status Protocol) requests and responses used in X.509 certificate validation workflows. It is part of the modularcrypto family of cryptographic packages and sits alongside asn1crypto for ASN.1 handling and oscrypto for cryptographic operations.
The library handles the low-level construction of OCSP protocol messages, allowing developers to build certificate status responses that can be served to clients validating certificate chains. It abstracts the ASN.1 encoding and signing logic required by the OCSP standard, making it practical to implement OCSP responder functionality or generate OCSP requests for certificate validation in custom PKI systems.
Use it for:
- Build OCSP responses in a custom certificate authority or OCSP responder service.
- Generate OCSP requests to validate certificate status in client applications.
- Integrate certificate revocation checking into PKI infrastructure without external dependencies.
- Test OCSP protocol handling in certificate validation libraries or security tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ocspbuilder creates and signs OCSP requests and responses for X.509 certificates, enabling certificate status validation in PKI systems.
Yes, if you need to work with OCSP protocol messages in a Python PKI system. The library has low install friction, permissive licensing, and no known vulnerabilities. The gap between the latest release (2016) and current maintenance activity warrants checking whether the library's maturity or stability meets your project's expectations, but active repository status suggests it is maintained.
Install
ocspbuilder on PyPI
pip
pip install ocspbuilderuv
uv add ocspbuilderpoetry
poetry add ocspbuilderInstalling ocspbuilder
Before you install
Low install friction with only two runtime dependencies (asn1crypto and oscrypto). Repository is active with recent commits, though the latest release was in 2016; maintenance status is marked active.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install ocspbuilder
from ocspbuilder import OCSPResponseBuilder
from asn1crypto import x509
# Build and sign an OCSP response
response_builder = OCSPResponseBuilder()
# (configure with certificate, issuer, and signing key)
Requires asn1crypto and oscrypto; oscrypto may require system cryptographic libraries depending on platform.
Verify before relying
- Current real-world adoption and whether 2016 latest release reflects active maintenance or stable maturity.
- Whether oscrypto's platform-specific crypto dependencies introduce practical friction on all target systems.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — asn1crypto, oscrypto |
| Maintenance | actively maintained — 3,668 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,870,326/month — #3,473 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ocspbuilder-0.10.2-py2.py3-none-any.whl
Keywords: crypto, pki, x509, certificate, ocsp
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
certvalidatorValidates X.509 certificates and certificate…
permissive · top 15,000 on PyPI
pyhanko-certvalidatorValidates X.509 certificate paths with support…
permissive · top 5,000 on PyPI
ocspresponderImplements an RFC 6960 compliant OCSP Responder…
permissive · top 5,000 on PyPI
openssl-ocsp-responderWraps OpenSSL's command-line OCSP responder to…
permissive · top 15,000 on PyPI
asn1cryptoA pure Python library for parsing and…
permissive · top 1,000 on PyPI
certipyCertipy creates and manages certificate…
permissive · top 15,000 on PyPI
oscryptooscrypto provides TLS sockets, key generation,…
permissive · top 1,000 on PyPI
endesiveEndesive signs and verifies digital signatures…
unclear · top 15,000 on PyPI
signxmlSignXML implements W3C XML Signature (XMLDSig)…
permissive · top 5,000 on PyPI
aws-cdk.aws-certificatemanagerProvides AWS CDK Constructs for provisioning…
permissive · top 15,000 on PyPI