1CERTWATCH(1)                Cryptography Utilities                CERTWATCH(1)
2
3
4

NAME

6       certwatch - generate SSL certificate expiry warnings
7

SYNOPSIS

9       certwatch [OPTION...] certname
10

DESCRIPTION

12       The certwatch program is used to issue warning mail when an SSL
13       certificate is about to expire.
14
15       The program has two modes of operation: normal mode and quiet mode. In
16       normal mode, the certificate identified by the certname argument is
17       examined, and a warning email is issued to standard output if the
18       certificate is outside its validity period, or approaching expiry. If
19       the certificate cannot be found, or any errors occur whilst parsing the
20       certificate, the certificate is ignored and no output is produced. In
21       quiet mode, no output is given, but the exit status can still be used.
22
23       The certificate can be specified in one of two ways. If the --configdir
24       option is used, the certname parameter is used as a nickname to
25       identify a certificate within an NSS database. Otherwise, the certname
26       parameter is treated as a filename containing a certificate in OpenSSL
27       "PEM" format.
28

OPTIONS

30       --quiet, -q
31           Enable quiet mode; no output is produced whether the certificate is
32           expired or not
33
34       --period days, -p days
35           Specify the number of days within which an expiry warning will be
36           produced; default is 30. Expiry warnings are always produced if, on
37           the day of invocation, the certificate is not yet valid, has
38           already expired, or is due to expire either that day or the
39           following day.
40
41       --address address, -a address
42           Specify the address used in the To field of the warning e-mail
43           issued if quiet mode is not enabled. The default is root.
44
45       --configdir cert-directory, -d cert-directory
46           Specify the database directory containing the certificate and key
47           database files.
48
49       --certdbprefix prefix, -c prefix
50           If --configdir is used, specify the prefix used for the certificate
51           database within the database directory.
52
53       --keydbprefix prefix, -c prefix
54           If --configdir is used, specify the prefix used for the key
55           database within the database directory.
56

DIAGNOSTICS

58       The exit code indicates the state of the certificate:
59
60       0
61           The certificate is outside its validity period, or approaching
62           expiry
63
64       1
65           The certificate is inside its validity period, or could not be
66           parsed
67

NOTES

69       The certwatch program is run daily by crond from the file
70       /etc/cron.daily/certwatch to generate warning mail concerning the
71       imminent expiry of SSL certificates configured for use in the Apache
72       HTTP server. These warnings can be disabled by adding the line:
73       NOCERTWATCH=yes to the file /etc/sysconfig/httpd. Additional options to
74       pass to certwatch can be specified in that file in the CERTWATCH_OPTS
75       environment variable.
76

FILES

78       /etc/cron.daily/certwatch, /etc/sysconfig/httpd
79

SEE ALSO

81       genkey(1)
82
83
84
85crypto-utils 2.5                 13 July 2018                     CERTWATCH(1)
Impressum