Skip to main content

A Python utility for checking states of ssl certificates

Project description

sslexp

check a state of your ssl certificates simply and cleverly

version made-with-python Python 3.6 Open Source Love

This program checks the expiration date of an ssl certificate. First set the url param that should contain the url address of a domain. The program returns a message and a status code based on a measurement result.

Installation

# using pip
pip install sslexp

# or if you are running multiple versions of python such as 2.7.x and 3.x 
pip3 install sslexp

# from source using git clone
git clone https://github.com/patrikskrivanek/ssl_expiration.git

# from source using wget
wget https://github.com/patrikskrivanek/ssl_expiration/blob/master/sslexp

Documentation

Argument Description Required
--url URL of an ssl certificate for check yes
--warning Number of days for warning output no [dafault 30]
--critical Number of days for critical output no [dafault 20]
--version Show program version optional
-h --help Show program help and usage optional
Status Exit code
STATE_OK 0
STATE_WARNING 1
STATE_CRITICAL 2
STATE_UNKNOWN 3

Examples

# check an ssl cert of github
sslexp --url github.com

# check the cert with your own warning and critical params
sslexp --url github.com --warning 5 --critical 3

# show program help
sslexp --help

# show program version
sslexp --version

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

If you're not sure about the file name format, learn more about wheel file names.

sslexp-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file sslexp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sslexp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for sslexp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1278e00bcbe2285bc52868e835f01cab5ef8ff0c1cc2d83debab71bcea2da29
MD5 b02107c35c5c2c11eade1e8ba078cac2
BLAKE2b-256 7e8ac3e6e1b5fe276e0ce9b39c4af6b1e5920302af9ca12814e58ce25bf4f11a

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