Skip to main content

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

Project description

build

Travis Build Status

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.

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

ssl_certinfo-1.1.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

ssl_certinfo-1.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ssl_certinfo-1.1.1.tar.gz.

File metadata

  • Download URL: ssl_certinfo-1.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.1 CPython/3.8.0 Linux/4.15.0-1077-gcp

File hashes

Hashes for ssl_certinfo-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3e8ed6c6db71da7c6e92933db96351bcfbdc6bb3fa4c6817f2a7307c89441008
MD5 d2e9639fe046170d4a2c37c0f1d3efaa
BLAKE2b-256 f3d7075b3815e1f355b7b052b291c3bdbf796d08ce414bf7a08351276750fd36

See more details on using hashes here.

File details

Details for the file ssl_certinfo-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: ssl_certinfo-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.1 CPython/3.8.0 Linux/4.15.0-1077-gcp

File hashes

Hashes for ssl_certinfo-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf5dc3ff9f50be61a5c9a0d5612a33e161ee316886d61d2edfb9edf55c6d31b
MD5 858acc2e6314a251b35d7a759170ad4b
BLAKE2b-256 d96ecbb7cae3466392473920f53b04b8eb1cc5c702040735b8c46e78a891c0b1

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