1 AutoGen Definitions options
;
3 prog
-title
= "GnuTLS DANE tool";
4 prog
-desc
= "Generate DANE TLSA RR entries.";
5 detail
= "Tool to generate DNS resource records for the DANE protocol.";
6 short
-usage
= "danetool [options]\ndanetool --help for usage instructions.\n";
16 descrip
= "Loads a public key file";
18 doc
= "This can be either a file or a PKCS #11 URL";
22 name
= load
-certificate
;
23 descrip
= "Loads a certificate file";
25 doc
= "This can be either a file or a PKCS #11 URL";
31 descrip
= "Hash algorithm to use for signing.";
32 doc
= "Available hash functions are SHA1, RMD160, SHA256, SHA384, SHA512.";
38 descrip
= "Check a host's DANE TLSA entry.";
39 doc
= "Obtains the DANE TLSA entry from the given hostname and prints information.";
44 descrip
= "Use the local DNS server for DNSSEC resolving.";
47 doc
= "This option will use the local DNS server for DNSSEC.
48 This is disabled by default due to many servers not allowing DNSSEC.";
53 descrip
= "Use DER format for input certificates and private keys.";
56 doc
= "The input files will be assumed to be in DER or RAW format.
57 Unlike options that in PEM input would allow multiple input data (e.g. multiple
58 certificates), when reading in DER format a single data structure is read.";
68 descrip
= "Print the DANE RR data on a certificate or public key";
70 doc
= "This command prints the DANE RR data needed to enable DANE on a DNS server.";
75 descrip
= "Specify the hostname to be used in the DANE RR";
77 arg
-name
= "Hostname";
78 doc
= "This command sets the hostname for the DANE RR.";
83 descrip
= "The protocol set for DANE data (tcp, udp etc.)";
85 arg
-name
= "Protocol";
86 doc
= "This command specifies the protocol for the service set in the DANE data.";
92 descrip
= "Specify the port number for the DANE data.";
99 descrip
= "Whether the provided certificate or public key is a Certificate Authority.";
100 doc
= "Marks the DANE RR as a CA certificate if specified.";
105 descrip
= "Use the hash of the X.509 certificate, rather than the public key.";
106 doc
= "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.";
111 descrip
= "The provided certificate or public key is a local entity.";
112 doc
= "DANE distinguishes certificates and public keys offered via the DNSSEC to trusted and local entities. Use this flag if this is a local (and possibly unsigned) entity.";
116 ds
-type
= 'SEE ALSO';
124 ds
-type
= 'EXAMPLES';
127 @subheading DANE TLSA RR generation
129 To create a DANE TLSA resource record for a CA signed certificate use the following commands.
132 $ danetool
--tlsa
-rr
--host www.example.com
--load
-certificate cert.pem
135 For a self signed certificate use
:
137 $ danetool
--tlsa
-rr
--host www.example.com
--load
-certificate cert.pem \
141 The latter is useful to add in your DNS entry even if your certificate is signed
142 by a CA. That way even users who do not trust your CA will be able to verify your
143 certificate using DANE.
145 In order to create a record for the signer of your certificate use
:
147 $ danetool
--tlsa
-rr
--host www.example.com
--load
-certificate cert.pem \
151 To read a server
's DANE TLSA entry, use:
153 $ danetool --check www.example.com --proto tcp --port 443
156 To verify a server's DANE TLSA entry
, use
:
158 $ danetool
--check www.example.com
--proto tcp
--port
443 --load
-certificate chain.pem