# check_certificates

This plugin/program is used to validate mulitple certificates of multiple different hosts at the same time.

## Requirements

There are no special requirements needed to run this Plugin

## HowTo: Usage

There are multiple ways to use this plugin:

# Output of help
Usage of check_certificates:
  -c int
        Threshold for Level CRIT (default 7)
  -d value
        Host/IP to validate
  -n	Disable validating hostname
  -w int
        Threshold for Level WARN (default 14)

### With validating hostname

You're able to validate multiple hostnames
--> Hint: Higher levels win (CRIT > WARN > UNKNOWN > OK)

./check_certificates -d timmehosting.de -d ptdev1.timmeserver.de
CRIT - [1] Certificate(s) expired since [67] days: [ptdev1.timmeserver.de]

### Without validating hostname

./check_certificates -d 9.9.9.9 -c 25 -w 128 -n
CRIT - [2] Certificate(s) valid less than [25] days: [*.quad9.net quad9.net]

### Set alternative Port

./check_certificates -d mx.timmehosting.de:993 
OK - Certificate(s) valid.

