File: clean-crl.8

package info (click to toggle)
fetch-crl 3.0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 256 kB
  • sloc: perl: 1,991; sh: 193; makefile: 131
file content (79 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.\" "@(#)$Id: clean-crl.8 2658 2013-07-06 18:49:46Z davidg $"
.\"
.\" 
.TH CLEAN-CRL 8 local "Trust Anchor Utilities"
.SH NAME
clean-crl \- remove orphaned CRL like files from a certificate directory
.SH SYNOPSIS
.ll +8
.B clean-crl
.RB [ \-l\ crlpath ]
.RB [ \-v ]
.RB [ \-V ]
.RB [ \-n ]
.RB [ \-h ]
.ll -8
.SH DESCRIPTION
The 
.I clean-crl
utility will remove CRL like files named
.IR hash .r n
from the directory specified with the 
.B \-l
option if there is no corresponding 
.RI . n
file in the same.
In effect, if the directory is solely used to hold CA certificates
in the common OpenSSL format, it will thus remove CRL files for
which the corresponding CA does  not or no longer exists in the
directory.

.SH OPTIONS
.TP
.B \-h --help
Show help text.
.TP
.B \-l --cadir metadata-directory
The script will search this directory for files with the
suffix 
.RI .r i .
There is no default - a common choice is /etc/pki/tls/certs, 
/etc/openldap/cacerts, or /etc/grid-security/certificates.

.TP
.B \-V --version 
Display version number (same as corresponding fetch-crl)

.TP
.B \-v --verbose
Verbose mode

.TP
.B \-n --dryrun
Do not actually remove any files (useful primarily with -v)

.SH CONFIGURATION
None.

.SH NOTES
This tool does not check the contents of the files removed, and will
blindly unlink any file which even remotely looks like an OpenSSL CRL
file. Use with extreme caution.

.SH "SEE ALSO"
fetch-crl(8), openssl(1), 
http://wiki.nikhef.nl/grid/FetchCRL3

.SH "DIAGNOSTICS"
Exit status is normally 0;
if an error occurs, exit status is 1 and diagnostics will be written
to standard error.

.SH LICENSE
Licensed under the Apache License, Version 2.0 (the "License"); 

.B http://www.apache.org/licenses/LICENSE-2.0

.SH BUGS
Does not check the contents of the files removed.