Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

certwatch(1) [centos man page]

CERTWATCH(1)						      Cryptography Utilities						      CERTWATCH(1)

certwatch - generate SSL certificate expiry warnings SYNOPSIS
certwatch [OPTION...] filename DESCRIPTION
The certwatch program is used to issue warning mail when an SSL certificate is about to expire. The program has two modes of operation: normal mode and quiet mode. In normal mode, the certificate given by the filename argument is examined, and a warning email is issued to standard output if the certificate is outside its validity period, or approaching expiry. If the certificate cannot be found, or any errors occur whilst parsing the certificate, the certificate is ignored and no output is produced. In quiet mode, no output is given, but the exit status can still be used. The certificate can be specified by its nickname or by a path to the containing file. OPTIONS
--quiet, -q Enable quiet mode; no output is produced whether the certificate is expired or not --period days, -p days Specify the number of days within which an expiry warning will be produced; default is 30. Expiry warnings are always produced if, on the day of invocation, the certificate is not yet valid, has already expired, or is due to expire either that day or the following day. --address address, -a address Specify the address used in the To field of the warning e-mail issued if quiet mode is not enabled. The default is root. --directory cert-directory, -d cert-directory Specify the database directory containing the certificate and key database files. The default is yet to be determined. DIAGNOSTICS
The exit code indicates the state of the certificate: 0 The certificate is outside its validity period, or approaching expiry 1 The certificate is inside its validity period, or could not be parsed NOTES
The certwatch program is run daily by crond from the file /etc/cron.daily/certwatch to generate warning mail concerning the imminent expiry of SSL certificates configured for use in the Apache HTTP server. These warnings can be disabled by adding the line: NOCERTWATCH=yes to the file /etc/sysconfig/httpd. Additional options to pass to certwatch can be specified in that file in the CERTWATCH_OPTS environment variable. FILES
/etc/cron.daily/certwatch, /etc/sysconfig/httpd SEE ALSO
genkey(1) crypto-utils 2.4.1 9 June 2014 CERTWATCH(1)

Check Out this Related Man Page

check_ssl_cert(1)						   USER COMMANDS						 check_ssl_cert(1)

check_ssl_cert - checks the validity of X.509 certificates SYNOPSIS
check_ssl_cert -H host [OPTIONS] DESCRIPTION
check_ssl_cert A Nagios plugin to check an X.509 certificate: - checks if the server is running and delivers a valid certificate - checks if the CA matches a given pattern - checks the validity ARGUMENTS
-H,--host host server OPTIONS
-A,--noauth ignore authority warnings (expiration only) --altnames matches the pattern specified in -n with alternate names too -C,--clientcert path use client certificate to authenticate --clientpass phrase set passphrase for client certificate. -c,--critical days minimum number of days a certificate has to be valid to issue a critical status -e,--email address pattern to match the email address contained in the certificate -f,--file file local file path (works with -H localhost only) -h,--help,-? this help message -i,--issuer issuer pattern to match the issuer of the certificate -n,---cn name pattern to match the CN of the certificate -N,--host-cn match CN with the host name -o,--org org pattern to match the organization of the certificate --openssl path path of the openssl binary to be used -p,--port port TCP port -P,--protocol protocol use the specific protocol: http (default) or smtp,pop3,imap,ftp (switch to TLS) -s,--selfsigned allows self-signed certificates -r,--rootcert cert root certificate or directory to be used for certficate validation (passed to openssl's -CAfile or -CApath) -t,--timeout seconds timeout after the specified time (defaults to 15 seconds) --temp dir directory where to store the temporary files -v,--verbose verbose output -V,--version version -w,--warning days minimum number of days a certificate has to be valid to issue a warning status DEPRECATED OPTIONS
-d,--days days minimum number of days a certificate has to be valid (see --critical and --warning) SEE ALSO
x509(1), openssl(1), expect(1) EXIT STATUS
check_ssl_cert returns a zero exist status if it finds no errors, 1 for warnings, 2 for a critical errors and 3 for unknown problems BUGS
Please report bugs to: Matteo Corti (matteo.corti (at) AUTHOR
Matteo Corti (matteo.corti (at) See the AUTHORS file for the complete list of contributors 1.13.0 April, 2012 check_ssl_cert(1)
Man Page