Skip to main content

build

Travis Build Status Build Status Master Build Status Develop

quality

Codacy Grade Code Climate Maintainability Sonar Quality Gate Status Sonar Reliability Rating

coverage

Coveralls Test Coverage CodeCov Code Climate Test Coverage

dependencies

Updates Python 3 Requirements Status

package

Version Python versions supported PyPI downloads

SSL CertInfo displays expiration dates and other information for SSL certificates from a set of hosts.

Features

  • Hosts to be scanned can be specified as a list of

    • hostnames (fully qualified domain names), e.g. github.com,

    • ip addresses, e.g. 1.1.1.1,

    • ip networks in CIDR format, e.g. 10.0.0.0/24,

    • ip ranges, e.g. 10.0.0.1-10.0.0.10,

    • or any combination of the previous.

  • Connect to target hosts via an http proxy (optional).

  • Results will be presented in various output formats: --table, --json, --yaml, --csv, --raw.

Installation

You can download and install the latest version of this software from the Python package index (PyPI) as follows:

$ pip install ssl_certinfo

Usage

When you install ssl_certinfo, a command-line script called ssl_certinfo is placed on your path. You can invoke ssl_certinfo directly via this script from the command line:

$ ssl_certinfo [...]

You can also invoke it through the Python interpreter from the command line:

$ python -m ssl_certinfo [...]

Help is available with the --help or -h switch:

$ ssl_certinfo -h
usage: ssl_certinfo [-h] [-V] [-v | -q] [-p PORT] [-t TIMEOUT] [-x [protocol://]host[:port]] [-T | -j | -y | -c | -r] [host [host ...]]

Collect information about SSL certificates from a set of hosts

positional arguments:
host                  Connect to HOST

optional arguments:
-h, --help            show this help message and exit
-V, --version         display version information and exit
-v, --verbose         verbose output (repeat for increased verbosity)
-q, --quiet           quiet output (show errors only)
-p PORT, --port PORT  TCP port to connnect to [0-65535]
-t TIMEOUT, --timeout TIMEOUT
                      Maximum time allowed for connection
-x [protocol://]host[:port], --proxy [protocol://]host[:port]
                      Use the specified proxy
-T, --table           Print results in table format
-j, --json            Print results in JSON format
-y, --yaml            Print results in YAML format
-c, --csv             Print results in CSV format
-r, --raw             Print results in raw format

Proxy

Optionally an http proxy can be specified which will be used to connect to the target hosts. The proxy can be specified using the -x, --proxy option or using one of the following environment variables:

  • http_proxy

  • HTTP_PROXY

  • https_proxy

  • HTTPS_PROXY

The environment variables can be specified in lower case or upper case. The lower case version has precedence.

The -x, --proxy option overrides existing environment variables that set the proxy to use. If there’s an environment variable setting a proxy, you can use -x "" to override it.

Credits

This package was created with Cookiecutter and the stdtom/cookiecutter-pypackage-pipenv project template, based on audreyr/cookiecutter-pypackage.

Metadata

Release files for ssl-certinfo 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssl-certinfo 1.1.2
File Size Uploaded
ssl_certinfo-1.1.2.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ssl-certinfo 1.1.2
File Interpreter ABI Platform
ssl_certinfo-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / ssl_certinfo-1.1.2.tar.gz

Download URL ssl_certinfo-1.1.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
20c346aeaf3c2982083775f1f514069db0c846416374b08ec8d94e532ee7dec6
BLAKE2b-256 checksum
How to use checksums
e386d41f7153c607eb712acdc5ab58e813ce219be61f297b9df80100826d1638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

Release files / ssl_certinfo-1.1.2-py3-none-any.whl

Download URL ssl_certinfo-1.1.2-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58aab6d9d1adcd8e936ffb713dbda0ee086155385dacc12a775f14feac966afb
BLAKE2b-256 checksum
How to use checksums
89bb8e31fde11b57301c9b0802b8404f829de0f973b870eab1cece1a868efaf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.0.1

2 release 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