Skip to main content

dump local/remote certificate info

Project description

showcert

Simple CLI tool with clean output to show local (.pem) and remote SSL certificates. (For those, who can do this with openssl, but often have to search for right syntax)

$ showcert github.com
Names: github.com www.github.com
notBefore: 2022-03-15 00:00:00
notAfter: 2023-03-15 23:59:59
Issuer: C=US O=DigiCert Inc CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1

Installation

pip3 install showcert

Usage

usage: showcert [-h] [-n NAME] [-i] CERT

Show local/remote SSL certificate info

positional arguments:
  CERT                  /path/cert.pem or google.com or google.com:443

optional arguments:
  -h, --help            show this help message and exit
  -n NAME, --name NAME  name for SNI (if not same as CERT host)
  -i, --insecure        Do not verify remote certificate

Examples:  
  # just check remote certificate
  bin/showcert example.com

  # check cert for example.com on new.example.com, do not verify
  bin/showcert new.example.com -n example.com -i

  # dump info from local certificate file
  bin/showcert /etc/letsencrypt/live/example.com/fullchain.pem

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

showcert-0.0.5-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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