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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
@node danetool Invocation
@subsection Invoking danetool
@pindex danetool
@ignore
# -*- buffer-read-only: t -*- vi: set ro:
#
# DO NOT EDIT THIS FILE (invoke-danetool.texi)
#
# It has been AutoGen-ed March 22, 2013 at 07:23:31 PM by AutoGen 5.16
# From the definitions ../src/danetool-args.def
# and the template file agtexi-cmd.tpl
@end ignore
Tool to generate and check DNS resource records for the DANE protocol.
This section was generated by @strong{AutoGen},
using the @code{agtexi-cmd} template and the option descriptions for the @code{danetool} program.
This software is released under the GNU General Public License, version 3 or later.
@anchor{danetool usage}
@subsubheading danetool help/usage (-h)
@cindex danetool help
This is the automatically generated usage text for danetool.
The text printed is the same whether for the @code{help} option (-h) or the @code{more-help} option (-!). @code{more-help} will print
the usage text by passing it through a pager program.
@code{more-help} is disabled on platforms without a working
@code{fork(2)} function. The @code{PAGER} environment variable is
used to select the program, defaulting to @file{more}. Both will exit
with a status code of 0.
@exampleindent 0
@example
danetool - GnuTLS DANE tool - Ver. @@VERSION@@
USAGE: danetool [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
-d, --debug=num Enable debugging.
- It must be in the range:
0 to 9999
-V, --verbose More verbose output
- may appear multiple times
--infile=file Input file
- file must pre-exist
--outfile=str Output file
--load-pubkey=str Loads a public key file
--load-certificate=str Loads a certificate file
--dlv=str Sets a DLV file
--hash=str Hash algorithm to use for signing.
--check=str Check a host's DANE TLSA entry.
--check-ee Check only the end-entity's certificate.
--check-ca Check only the CA's certificate.
--insecure Do not verify any DNSSEC signature.
--local-dns Use the local DNS server for DNSSEC resolving.
- disabled as --no-local-dns
--inder Use DER format for input certificates and private keys.
- disabled as --no-inder
--inraw This is an alias for 'inder'
--tlsa-rr Print the DANE RR data on a certificate or public key
- requires these options:
host
--host=str Specify the hostname to be used in the DANE RR
--proto=str The protocol set for DANE data (tcp, udp etc.)
--port=num Specify the port number for the DANE data.
--ca Whether the provided certificate or public key is a Certificate
Authority.
--x509 Use the hash of the X.509 certificate, rather than the public key.
--local This is an alias for 'domain'
- enabled by default
--domain The provided certificate or public key is issued by the local domain.
- disabled as --no-domain
- enabled by default
-v, --version[=arg] Output version information and exit
-h, --help Display extended usage information and exit
-!, --more-help Extended usage information passed thru pager
Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.
Tool to generate and check DNS resource records for the DANE protocol.
please send bug reports to: bug-gnutls@@gnu.org
@end example
@exampleindent 4
@anchor{danetool debug}
@subsubheading debug option (-d)
This is the ``enable debugging.'' option.
This option takes an argument number.
Specifies the debug level.
@anchor{danetool load-pubkey}
@subsubheading load-pubkey option
This is the ``loads a public key file'' option.
This option takes an argument string.
This can be either a file or a PKCS #11 URL
@anchor{danetool load-certificate}
@subsubheading load-certificate option
This is the ``loads a certificate file'' option.
This option takes an argument string.
This can be either a file or a PKCS #11 URL
@anchor{danetool dlv}
@subsubheading dlv option
This is the ``sets a dlv file'' option.
This option takes an argument string.
This sets a DLV file to be used for DNSSEC verification.
@anchor{danetool hash}
@subsubheading hash option
This is the ``hash algorithm to use for signing.'' option.
This option takes an argument string.
Available hash functions are SHA1, RMD160, SHA256, SHA384, SHA512.
@anchor{danetool check}
@subsubheading check option
This is the ``check a host's dane tlsa entry.'' option.
This option takes an argument string.
Obtains the DANE TLSA entry from the given hostname and prints information. Note that the actual certificate of the host has to be provided using --load-certificate.
@anchor{danetool check-ee}
@subsubheading check-ee option
This is the ``check only the end-entity's certificate.'' option.
Checks the end-entity's certificate only. Trust anchors or CAs are not considered.
@anchor{danetool check-ca}
@subsubheading check-ca option
This is the ``check only the ca's certificate.'' option.
Checks the trust anchor's and CA's certificate only. End-entities are not considered.
@anchor{danetool insecure}
@subsubheading insecure option
This is the ``do not verify any dnssec signature.'' option.
Ignores any DNSSEC signature verification results.
@anchor{danetool local-dns}
@subsubheading local-dns option
This is the ``use the local dns server for dnssec resolving.'' option.
This option will use the local DNS server for DNSSEC.
This is disabled by default due to many servers not allowing DNSSEC.
@anchor{danetool inder}
@subsubheading inder option
This is the ``use der format for input certificates and private keys.'' option.
The input files will be assumed to be in DER or RAW format.
Unlike options that in PEM input would allow multiple input data (e.g. multiple
certificates), when reading in DER format a single data structure is read.
@anchor{danetool inraw}
@subsubheading inraw option
This is an alias for the inder option,
@pxref{danetool inder, the inder option documentation}.
@anchor{danetool tlsa-rr}
@subsubheading tlsa-rr option
This is the ``print the dane rr data on a certificate or public key'' option.
@noindent
This option has some usage constraints. It:
@itemize @bullet
@item
must appear in combination with the following options:
host.
@end itemize
This command prints the DANE RR data needed to enable DANE on a DNS server.
@anchor{danetool host}
@subsubheading host option
This is the ``specify the hostname to be used in the dane rr'' option.
This option takes an argument string @file{Hostname}.
This command sets the hostname for the DANE RR.
@anchor{danetool proto}
@subsubheading proto option
This is the ``the protocol set for dane data (tcp, udp etc.)'' option.
This option takes an argument string @file{Protocol}.
This command specifies the protocol for the service set in the DANE data.
@anchor{danetool ca}
@subsubheading ca option
This is the ``whether the provided certificate or public key is a certificate authority.'' option.
Marks the DANE RR as a CA certificate if specified.
@anchor{danetool x509}
@subsubheading x509 option
This is the ``use the hash of the x.509 certificate, rather than the public key.'' option.
This option forces the generated record to contain the hash of the full X.509 certificate. By default only the hash of the public key is used.
@anchor{danetool local}
@subsubheading local option
This is an alias for the domain option,
@pxref{danetool domain, the domain option documentation}.
@anchor{danetool domain}
@subsubheading domain option
This is the ``the provided certificate or public key is issued by the local domain.'' option.
@noindent
This option has some usage constraints. It:
@itemize @bullet
@item
is enabled by default.
@end itemize
DANE distinguishes certificates and public keys offered via the DNSSEC to trusted and local entities. This flag indicates that this is a domain-issued certificate, meaning that there could be no CA involved.
@anchor{danetool exit status}
@subsubheading danetool exit status
One of the following exit values will be returned:
@table @samp
@item 0 (EXIT_SUCCESS)
Successful program execution.
@item 1 (EXIT_FAILURE)
The operation failed or the command syntax was not valid.
@end table
@anchor{danetool See Also}
@subsubheading danetool See Also
certtool (1)
@anchor{danetool Examples}
@subsubheading danetool Examples
@subsubheading DANE TLSA RR generation
To create a DANE TLSA resource record for a certificate (or public key)
that was issued localy and may or may not be signed by a CA use the following command.
@example
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem
@end example
To create a DANE TLSA resource record for a CA signed certificate, which will
be marked as such use the following command.
@example
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem \
--no-domain
@end example
The former is useful to add in your DNS entry even if your certificate is signed
by a CA. That way even users who do not trust your CA will be able to verify your
certificate using DANE.
In order to create a record for the CA signer of your certificate use the following.
@example
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem \
--ca --no-domain
@end example
To read a server's DANE TLSA entry, use:
@example
$ danetool --check www.example.com --proto tcp --port 443
@end example
To verify a server's DANE TLSA entry, use:
@example
$ danetool --check www.example.com --proto tcp --port 443 --load-certificate chain.pem
@end example
|