]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/certctl/certctl.8
MFC r361655:
[FreeBSD/FreeBSD.git] / usr.sbin / certctl / certctl.8
1 .\"
2 .\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 .\"
4 .\" Copyright 2018 Allan Jude <allanjude@freebsd.org>
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted providing that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
26 .\"
27 .\" $FreeBSD$
28 .\"
29 .Dd May 30, 2020
30 .Dt CERTCTL 8
31 .Os
32 .Sh NAME
33 .Nm certctl
34 .Nd "tool for managing trusted and blacklist TLS certificates"
35 .Sh SYNOPSIS
36 .Nm
37 .Op Fl v
38 .Ic list
39 .Nm
40 .Op Fl v
41 .Ic blacklisted
42 .Nm
43 .Op Fl nv
44 .Ic rehash
45 .Nm
46 .Op Fl nv
47 .Ic blacklist Ar file
48 .Nm
49 .Op Fl nv
50 .Ic unblacklist Ar file
51 .Sh DESCRIPTION
52 The
53 .Nm
54 utility manages the list of TLS Certificate Authorities that are trusted by
55 applications that use OpenSSL.
56 .Pp
57 Flags:
58 .Bl -tag -width 4n
59 .It Fl n
60 No-Op mode, do not actually perform any actions.
61 .It Fl v
62 be verbose, print details about actions before performing them.
63 .El
64 .Pp
65 Primary command functions:
66 .Bl -tag -width blacklisted
67 .It Ic list
68 List all currently trusted certificate authorities.
69 .It Ic blacklisted
70 List all currently blacklisted certificates.
71 .It Ic rehash
72 Rebuild the list of trusted certificate authorities by scanning all directories
73 in
74 .Ev TRUSTPATH
75 and all blacklisted certificates in
76 .Ev BLACKLISTPATH .
77 A symbolic link to each trusted certificate is placed in
78 .Ev CERTDESTDIR
79 and each blacklisted certificate in
80 .Ev BLACKLISTDESTDIR .
81 .It Ic blacklist
82 Add the specified file to the blacklist.
83 .It Ic unblacklist
84 Remove the specified file from the blacklist.
85 .El
86 .Sh ENVIRONMENT
87 .Bl -tag -width BLACKLISTDESTDIR
88 .It Ev DESTDIR
89 Alternate destination directory to operate on.
90 .It Ev TRUSTPATH
91 List of paths to search for trusted certificates.
92 Default:
93 .Pa <DESTDIR>/usr/share/certs/trusted
94 .Pa <DESTDIR>/usr/local/share/certs <DESTDIR>/usr/local/etc/ssl/certs
95 .It Ev BLACKLISTPATH
96 List of paths to search for blacklisted certificates.
97 Default:
98 .Pa <DESTDIR>/usr/share/certs/blacklisted
99 .Pa <DESTDIR>/usr/local/etc/ssl/blacklisted
100 .It Ev CERTDESTDIR
101 Destination directory for symbolic links to trusted certificates.
102 Default:
103 .Pa <DESTDIR>/etc/ssl/certs
104 .It Ev BLACKLISTDESTDIR
105 Destination directory for symbolic links to blacklisted certificates.
106 Default:
107 .Pa <DESTDIR>/etc/ssl/blacklisted
108 .It Ev EXTENSIONS
109 List of file extensions to read as certificate files.
110 Default: *.pem *.crt *.cer *.crl *.0
111 .El
112 .Sh SEE ALSO
113 .Xr openssl 1
114 .Sh HISTORY
115 .Nm
116 first appeared in
117 .Fx 12.2
118 .Sh AUTHORS
119 .An Allan Jude Aq Mt allanjude@freebsd.org