https://github.com/adfinis/check-ssl
Check the expiration date of your ssl-cert with bash (implemented for Nagios/Icinga)
https://github.com/adfinis/check-ssl
check icinga monitoring nagios
Last synced: 6 months ago
JSON representation
Check the expiration date of your ssl-cert with bash (implemented for Nagios/Icinga)
- Host: GitHub
- URL: https://github.com/adfinis/check-ssl
- Owner: adfinis
- License: gpl-3.0
- Created: 2016-05-04T05:15:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T10:13:40.000Z (over 3 years ago)
- Last Synced: 2025-04-17T18:22:55.965Z (6 months ago)
- Topics: check, icinga, monitoring, nagios
- Language: Shell
- Homepage: https://exchange.icinga.org/adfinissygroup/check-ssl
- Size: 63.5 KB
- Stars: 15
- Watchers: 16
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Check the expiration date of your ssl-cert
## Fast bash script to see the expiration date of your ssl-cert
* You need a fast way to check the expiration date of an SSL certificate?
* You want it to be flexible and adjustable to your own needs?
* There you go!## What' s in for you?
* TLS options like:
* smtp
* pop3
* imap
* ftp
* xmpp
* xmpp-server
* Simple command line interface
* Easy integrateable for monitoring e.g a cron service or icinga## The Script can deal with these options:
* `-H`
* Sets the value for the hostname. e.g adfinis-sygroup.ch
* `-I`
* Sets an optional value for an IP to connect. e.g 127.0.0.1
* `-p`
* Sets the value for the port. e.g 443
* `-P`
* Sets an optional value for an TLS protocol. e.g xmpp.
* Automatically gets set for some known port numbers.
* `-w`
* Sets the value for the days before warning. Default is 30
* `-c`
* Sets the value for the days before critical. Default is 5
* `-l`
* Sets an optional label for the host in messages. Default uses /etc/services.
* `-h`#### Example
```
./check_ssl.sh -H adfinis-sygroup.ch -p 443 -w 40
```
#### Or
```
./check_ssl.sh -H jabber.adfinis-sygroup.ch -p 5222 -P xmpp -w 30 -c 5
```