Skip to content

πŸ”ŽπŸ”’ Script for checking SSL certificates expiration date

License

Notifications You must be signed in to change notification settings

JMousqueton/CheckCert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”ŽπŸ”’ Check Certificat

Script to check x.509 certificat of website using openssl

GPLv3 License Twitter: JMousqueton

πŸ“– Documentation

Script options

-d <domain>     Domain name (Mandatory).
-h              Print this Help.
-D <99>         Number of days (by default 7 days).
-p <443>        Port (by default 443).
-v              Verbose error message on stderr

return error code

Error Code Description
0 Not expired
1 Expired or will expired within 7 days by default
3 Openssl not installed
22 No domain specified or invalid options
101 Domain doesn't respond

πŸ’» Usage/Examples

$ ./checkcert.sh -d www.julien.io -p 443 -D 15 -v
βœ” www.julien.io won't expired within 15 days.

$ ./checkcert.sh -d expired.badssl.com -p 443 -D 90 -v
❌ expired.badssl.com has been expired or will expire within 90 days.

πŸ—Ί Roadmap

Status Description
βœ… Add "Standard" Linux error code
βœ… Disable SSL check on curl for website testing

LΓ©gende

Status Description
βœ… Done
πŸ›  In progress
🟒 Low priority
🟑 Medium priority
πŸ”΄ High Priority

πŸ‘€ Authors

Julien Mousqueton

πŸ“œ License

✌🏻 Acknowledgements

  • Ecole 2600 students for the support while coding a sunday evening :)