Coder Social home page Coder Social logo

tls_check's Introduction

TLS Check

TLS Check is a tool for monitoring server certificates, it can monitor expiry time and a certificate change by calculating the sha256.

If you use different certificates for the same service , you can add all the sha256 values to the list:

site.com sha256_value1 sha256_value2

Usage

You can pass a list of hosts in a file as an argument or as stdin.

$ CHECK_DAYS=5 ./tls_check.py <<EOM
app.site.com bc937c50d0ce6e7d1011fe6dc90bb943ed09faa5a294ca8f7a2e692dd1e45f62
app2.site2.net 6e40ba1a8caafd4ddbca949bb5505754fe1a09899314f33d4e976162ecfb2303
EOM

INFO:TLSCheck:app.site.com cert is fine
INFO:TLSCheck:app2.site2.net cert is fine
$ echo $?
0

or

./tls_check.py hostlist.txt

Config options are environment variables:

  • CHECK_DAYS: The minimun allowed ramaining days to the expiry date.
  • LOGLEVEL: INFO (defaul), DEBUG, ERROR, etc..(as in python's logging module.)

tls_check's People

Contributors

jfardello avatar

Watchers

 avatar

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.