Security

check_ssl_cert

Description:

A POSIX shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection and certificate

Current Version

2.79.0

Last Release Date

2024-01-01

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x

Owner

License

GPL


Project Notes
A POSIX shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection and certificate
Reviews (8) Add a Review
Awesome Check! Recommended!
by jnash, January 31, 2021

This script is the gold standard for Nagios core SSL checks and for how bash scripts should be written and distributed! 1.) It has options for just about every aspect of X.509 certificates 2.) It is simple to use (once you figure out you have to tell it where your local CA (Certificate Authority) is located 3.) It can check a 3rd party API at SSL Labs to grade a web sites cert. This takes a long time and the check may time-out for Nagios but that's not the fault of this script. I may batch process those checks and save the results and just do those as soft checks / and or, run them in batch mode, and leverage the fact that SSL Labs caches subsequent request which allow this check to then complete quickly. 4.) It is very well documented 5.) It is actively maintained (big deal) 6.) It just works! Phreedom Technologies will be using it to check all of our company & client web sites as well as all publicly accessible SSL-VPN, HTTP admin portals (internal and external) including both those registered to a public CA or a self-signed. Excellent work and thank you!



Also works for Let’s Encrypt
by jmeulen, May 31, 2018

While check_http fails checking Let’s Encrypt certificates this one does a good job



Great plugin for checking ssl certs
by petarl, March 31, 2018

Works without any issues on all of my linux boxes and without any additional software.



Very good
by GldRush98, February 28, 2018

Actually respects http hosts and pulls the correct certificate unlike the built in check_http. Great plugin for checking certs!



Check behind a proxy
by fabien.clerc, June 30, 2017

Hello, Is it possible to give an URL instead of a host ? Thanks and Regards



Great plugin
by avonnieda, February 28, 2017

Excellent features, easy to use, thanks for sharing!



Works well
by wytcld, June 30, 2016

Fully featured. Appreciate the option to point to an alternate (newer) openssl.



Works great
by dane-xa, October 31, 2012

Thanks for an excellent Nagios plugin! We use this to check certificate validity and expiration with the following command: define command{ command_name check_ssl_cert command_line /etc/nagios-plugins/local-bin/check_ssl_cert -H '$HOSTADDRESS$' -c 60 -r /etc/ssl/certs/ -n '$HOSTADDRESS$' } Works great, even with wildcard SSL certs. Thanks! Dane



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.8 (17)
Favorites
3
Views
203,334