Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sslexp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sslexp

A Python utility for checking states of ssl certificates

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

sslexp

check a state of your ssl certificates simply and cleverly

Build Status Language grade: Python 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

ArgumentDescriptionData typeRequired
--urlURL of an ssl certificate for checkstringyes
--warningNumber of days for warning outputintegerno [default: 30]
--criticalNumber of days for critical outputintegerno [default: 20]
--portSSL portintegerno [default: 443]
--timeoutTimeout in seconds for checkintegerno [default: 3]
--outputOutput format (text, json, nagios)stringno [default: text]
--versionShow program versionoptional
-h --helpShow program help and usageoptional
StatusExit code
STATE_OK0
STATE_WARNING1
STATE_CRITICAL2
STATE_UNKNOWN3

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

# check the ssl certificate on specific port
sslexp --url website.com --port 8085

# check the ssl cert with timeout
sslexp --url website.com --timeout 5

# check the ssl cert with specific output
sslexp --url website.com --output json

# show program help
sslexp --help

# show program version
sslexp --version

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc