Skip to content

Watch expiration of certificates of a bunch of websites.

Notifications You must be signed in to change notification settings

datamoc/certificate_watcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lists expiration time of soon-to-be expired ssl certificates of all given domains like:

./certificate_watcher.py mdk.fr python.org duckduckgo.com mdk.fr:Certificate expires in 2 days

The list of domains can be given as a file, using the -f or --from-file argument. In this file, list each domains, one per line. Blank lines and lines starting with '#' are ignored.

An optional port can be given using the usual syntax host:port, for example imap.protonmail.com:443.

An optional IP address can be given using an @, this is usefull to poke multiple backends like:

./certificate_watcher.py [email protected] [email protected]

A domain to be resolved can be used in this field to, like:

./certificate_watcher.py [email protected] [email protected]

The @host and :port have no specific order, both example.com:[email protected] and [email protected]:443 mean the same test.

Exemple domain file:

# Our project
example.com
www.example.com
mail.example.com
dev.example.com
demo.example.com
testing.example.com
git.example.com

# Friends
duckduckgo.com
mamot.fr
protonmail.com

# IMAP
imap.protonmail.com:993

Usefull as a daily cron, typically like this:

certificate_watcher -f /home/you/.certificate_watcher

Or if you use IRC:

certificate_watcher -f /home/you/.certificate_watcher | irk '#your_project_channel' -

About

Watch expiration of certificates of a bunch of websites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%