Skip to main content

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

Project description

OCSP-Checker

Downloads PyPI Version Python version

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 (64-bit) and above.

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: 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

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.9.5.tar.gz (9.9 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-1.9.5-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocsp-checker-1.9.5.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.9

File hashes

Hashes for ocsp-checker-1.9.5.tar.gz
Algorithm Hash digest
SHA256 f75c303ee37688e2d3140925c6e06030f816f637d4f9125ba19b11677d34f5f4
MD5 629fc81dda4e7cc1e16c269b5936cb4f
BLAKE2b-256 e6013ccba9b15438525cbf97ce23e02e9ef1b680eb8f66266561987adc6d595c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocsp_checker-1.9.5-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.9

File hashes

Hashes for ocsp_checker-1.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f91e290ec31cc982cca9dfc3b9359f6c3842da22750be1422830a5679884d858
MD5 e91d9feb073043673cbab5e3e03d2a0a
BLAKE2b-256 f371ba834888e774ec9a6fe1c265b9186e3b1b88c44e0c397ff232c395164442

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