Skip to main content

Library used to check the OCSP revocation status for a x509 digital certificate.

Project description

OCSP-Checker

Overview

OCSP-Checker 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.7 and 3.8 (64-bit). Python 3.9 is not yet supported.

Installation

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

OCSP-Checker can now be used at the command line. The format is:

usage: ocsp-checker [-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

Feedback

Send me mail at joe@metlife.com

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

ocsp-checker-1.6.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

ocsp_checker-1.6.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ocsp-checker-1.6.0.tar.gz.

File metadata

  • Download URL: ocsp-checker-1.6.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ocsp-checker-1.6.0.tar.gz
Algorithm Hash digest
SHA256 7cf4f50eeae3a5912cd51179b349a738f4ba826978b359d8f0e02906f06415c3
MD5 ac31121c824c117c85a348bfa84742ad
BLAKE2b-256 f09f357030c7827dcdc14e7cdf98bf39659e111223b459399311eabd8519e6ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocsp_checker-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ocsp_checker-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ba56deeedbf4dea8b91c0a04c494ef78635c770419fd23efb4b40e69c15b926
MD5 061256373250951c85a6d934e66a5b1e
BLAKE2b-256 d58ce0c0b61826ad456b0050edc2eb3af8b3e68cd60709bb15ec165b26fedc1e

See more details on using hashes here.

Supported by

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