1
AutoGen Definitions options;
3
prog-title = "GnuTLS DANE tool";
4
prog-desc = "Generate DANE TLSA RR entries.";
5
detail = "Tool to generate and check 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";
30
descrip = "Sets a DLV file";
32
doc = "This sets a DLV file to be used for DNSSEC verification.";
38
descrip = "Hash algorithm to use for signing.";
39
doc = "Available hash functions are SHA1, RMD160, SHA256, SHA384, SHA512.";
45
descrip = "Check a host's DANE TLSA entry.";
46
doc = "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.";
51
descrip = "Check only the end-entity's certificate.";
52
doc = "Checks the end-entity's certificate only. Trust anchors or CAs are not considered.";
57
descrip = "Check only the CA's certificate.";
58
doc = "Checks the trust anchor's and CA's certificate only. End-entities are not considered.";
63
descrip = "Do not verify any DNSSEC signature.";
64
doc = "Ignores any DNSSEC signature verification results.";
69
descrip = "Use the local DNS server for DNSSEC resolving.";
72
doc = "This option will use the local DNS server for DNSSEC.
73
This is disabled by default due to many servers not allowing DNSSEC.";
78
descrip = "Use DER format for input certificates and private keys.";
81
doc = "The input files will be assumed to be in DER or RAW format.
82
Unlike options that in PEM input would allow multiple input data (e.g. multiple
83
certificates), when reading in DER format a single data structure is read.";
93
descrip = "Print the DANE RR data on a certificate or public key";
95
doc = "This command prints the DANE RR data needed to enable DANE on a DNS server.";
100
descrip = "Specify the hostname to be used in the DANE RR";
102
arg-name = "Hostname";
103
doc = "This command sets the hostname for the DANE RR.";
108
descrip = "The protocol set for DANE data (tcp, udp etc.)";
110
arg-name = "Protocol";
111
doc = "This command specifies the protocol for the service set in the DANE data.";
117
descrip = "Specify the port number for the DANE data.";
124
descrip = "Whether the provided certificate or public key is a Certificate Authority.";
125
doc = "Marks the DANE RR as a CA certificate if specified.";
130
descrip = "Use the hash of the X.509 certificate, rather than the public key.";
131
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.";
141
descrip = "The provided certificate or public key is issued by the local domain.";
144
doc = "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.";
148
ds-type = 'SEE ALSO';
156
ds-type = 'EXAMPLES';
159
@subheading DANE TLSA RR generation
161
To create a DANE TLSA resource record for a certificate (or public key)
162
that was issued localy and may or may not be signed by a CA use the following command.
164
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem
167
To create a DANE TLSA resource record for a CA signed certificate, which will
168
be marked as such use the following command.
170
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem \
174
The former is useful to add in your DNS entry even if your certificate is signed
175
by a CA. That way even users who do not trust your CA will be able to verify your
176
certificate using DANE.
178
In order to create a record for the CA signer of your certificate use the following.
180
$ danetool --tlsa-rr --host www.example.com --load-certificate cert.pem \
184
To read a server's DANE TLSA entry, use:
186
$ danetool --check www.example.com --proto tcp --port 443
189
To verify a server's DANE TLSA entry, use:
191
$ danetool --check www.example.com --proto tcp --port 443 --load-certificate chain.pem