]> &date; Cryptography Utilities crypto-utils &version; certwatch 1 certwatch generate SSL certificate expiry warnings certwatch OPTION... certname 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 identified by the certname 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 in one of two ways. If the option is used, the certname parameter is used as a nickname to identify a certificate within an NSS database. Otherwise, the certname parameter is treated as a filename containing a certificate in OpenSSL "PEM" format. Options , Enable quiet mode; no output is produced whether the certificate is expired or not , 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. , Specify the address used in the To field of the warning e-mail issued if quiet mode is not enabled. The default is root. , Specify the database directory containing the certificate and key database files. , If is used, specify the prefix used for the certificate database within the database directory. , If is used, specify the prefix used for the key database within the database directory. 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)