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 (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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ocsp-checker-1.9.11.tar.gz
.
File metadata
- Download URL: ocsp-checker-1.9.11.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe3898f30fd56b313580fc507824046d4516f0962ff2d8f00c9e6ec5df415f3 |
|
MD5 | b8a5b22d779c0383969a3d83f170895a |
|
BLAKE2b-256 | d74b1827ca48bdfaca08b6a6da0f505878fe4049cbc4f567dd45969823f17160 |
File details
Details for the file ocsp_checker-1.9.11-py3-none-any.whl
.
File metadata
- Download URL: ocsp_checker-1.9.11-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f18eaff7176b598c53caed4d6eae7a051617fdf63d1a1a83c71f68a42a9858 |
|
MD5 | f60daef27f18f4608a53feccc419ed74 |
|
BLAKE2b-256 | 0b1dec058db3bcfda73e91b8a15f515b14111916ec77762511332e367a626946 |