Skip to main content

OCSPChecker

Downloads PyPI Version Python version

Overview

OCSPChecker is a python package based on Alban Diquet's nassl wrapper and the Python Cryptographic Authority's cryptography package. Relying on a web browser to check the revocation status of a x509 digital certificate has been broken from the beginning, and validating certificates outside of the web browser is a manual process. OCSP-Checker aims to solve this by providing an automated means to check the OCSP revocation status for a x509 digital certificate.

Pre-requisites

Python - Python 3.10 (64-bit) and above.

Installation

It is strongly recommended to run ocsp-checker in a virtual environment.

python -m venv ocsp-checker
cd ocsp-checker && source bin/activate
pip install ocsp-checker

Usage

>>> from ocspchecker import ocspchecker
>>> ocsp_request = ocspchecker.get_ocsp_status("github.com")

Sample Output

Sample output below, let me know if you want to add more fields/information to the output.

['Host: github.com:443', 'OCSP URL: http://ocsp.digicert.com', 'OCSP Status: GOOD']

PLEASE NOTE: If you run this on a network with a MITM SSL proxy, you may receive unintended results (see below):

["Error: Certificate Authority Information Access (AIA) Extension Missing. Possible MITM Proxy."]

Command Line Usage

OCSPChecker can now be used at the command line. The format is:

usage: ocspchecker [-h] --target target [--port port]

Check the OCSP revocation status for a x509 digital certificate.

optional arguments:
  -h, --help            show this help message and exit
  --target target, -t target
                        The target to test
  --port port, -p port  The port to test (default is 443)

For example:

ocspchecker -t github.com

Download files

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

Source Distribution

ocsp_checker-2.0.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

ocsp_checker-2.0.3-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file ocsp_checker-2.0.3.tar.gz.

File metadata

  • Download URL: ocsp_checker-2.0.3.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for ocsp_checker-2.0.3.tar.gz
Algorithm Hash digest
SHA256 8dfca06a9f058aa2009ec70d416364d6a0101be293dc22586bd99f844a5d51a7
MD5 148afa3b391728c653f15afdeb9bc2f6
BLAKE2b-256 7567338e44ddff5f76ab6da557fab425e76035d7ea1700832a5064cc32929bc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocsp_checker-2.0.3.tar.gz:

Publisher: main.yml on gattjoe/OCSPChecker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ocsp_checker-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: ocsp_checker-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for ocsp_checker-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be3a93e566c939fcf38ab92cb5c0143a960431f1726e2a11fd5e611bfc448067
MD5 335ae39f8fe90154768904cedcf36ebc
BLAKE2b-256 df566a92df8528f0bfbbe77a842cb8d3e1dcc8240684963dab9d40d1fdbf94ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for ocsp_checker-2.0.3-py3-none-any.whl:

Publisher: main.yml on gattjoe/OCSPChecker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.4

2 files

This release

2.0.3 This release

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.9.14

2 files

1.9.13

2 files

1.9.12

2 files

1.9.11

2 files

1.9.10

2 files

1.9.9

2 files

1.9.8

2 files

1.9.7

2 files

1.9.6

2 files

1.9.5

2 files

1.9.0

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page