GithubHelp home page GithubHelp logo

niklasf / check-tls-certs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fschulze/check-tls-certs

0.0 2.0 0.0 51 KB

Check TLS certificates of domains for expiration dates and more.

Python 100.00%

check-tls-certs's Introduction

check-tls-certs

Check TLS certificates of domains for expiration dates and more.

Installation

It's recommended to use Python 3.5 or newer on macOS, because DNS lookups work in parallel and thus much faster when checking several domains.

Best installed via pipsi:

% pipsi install check-tls-certs

Or some other way to install a python package with included scripts.

Usage

Usage: check_tls_certs [OPTIONS] [DOMAIN]...

  Checks the TLS certificate for each DOMAIN.

  You can add checks for alternative names by separating them with a slash,
  like example.com/www.example.com.

  Wildcard domains are supported.

  Exits with return code 3 when there are warnings, code 4 when there are
  errors, code 6 when more than half of the domains raised an exception
  during fetch and code 5 when the domain definition contains errors.

Options:
  -f, --file FILE  File to read domains from. One per line.
  -v, --verbose    Increase verbosity. Can be used several times. Currently
                   max verbosity is 2.
  --help           Show this message and exit.

When domains are read from a file, lines starting with a # are ignored. If a line in a file ends in a /, it is joined with the next line. This allows you to group many domains using the same certificate.

If a domain starts with a ! it is checked to be in the list of alternate names, but the TLS certificate for it will not be fetched and checked. This is useful for domains that aren't accessible for some reason.

The default port 443, to which the connection is made to fetch the certificate, can be changed by adding it to the domain separated by a colon like example.com:1234.

You can change the actually used host used for the connection by separating it with a | symbol, for example example.com|192.168.0.1 will use the IP 192.168.0.1 to connect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.