Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Check SSL Certificate Validity:
1. Certificate Expiry in days 2. Chain of Trust 2a. Root CA certificate is trusted 2b. Any intermediate certificates are present, especially important for Mobile devices 3. Domain name on certificate (optional) 4. Subject Alternative Names supported by certificate (optional)
Current Version
Last Release Date
October 3, 2013
Owner
Hari Sekhon
Website
https://github.com/harisekhon/nagios-plugins
Download URL
Compatible With
Part of the Advanced Nagios Plugins Collection, download it here:
./check_ssl_cert.pl --help
Nagios Plugin to check SSL Certificate Validity
Checks:
usage: check_ssl_cert.pl [ options ]
-H --host The host to check -P --port The port to check (defaults to port 443) -d --domain Expected domain of the certificate -s --subject-alternative-names Additional FQDNs to require on the certificate -w --warning The warning threshold in days before expiry (defaults to 30) -c --critical The critical threshold in days before expiry (defaults to 14) -N --no-validate Do not validate the SSL certificate chain -C --CApath Path to ssl root certs dir (will attempt to determine from openssl binary if not supplied) -h --help Print description and usage options -t --timeout Timeout in secs (default: 10) -v --verbose Verbose mode -V --version Print version and exit
I had to tweak the script to handle certificates that contain OIDs. Change: my %h=grep /./,(split //([A-Za-z]+)=/,$subject); to my %h=grep /./,(split //([A-Za-z]+|[.d]+)=/,$subject);
You must be logged in to submit a review.
To:
From: