skillfed

ocspbuilder

Creates and signs online certificate status protocol (OCSP) requests and responses for X.509 certificates

ocspbuilder v0.10.2 1.9M downloads/30d#3,473 on PyPI34
Permissive license MIT Active released

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 ocspbuilder

uv

uv add ocspbuilder

poetry

poetry add ocspbuilder

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: Implementation :: PyPyTopic :: Security :: Cryptography

Tags

ocsp request response buildercertificate status protocolx509 ocsp signingpki certificate validationonline certificate status protocol
pkicertificate-validationcryptography

More Cryptography packages