Blame doc/manpages/danetool.1

Packit Service 4684c1
.de1 NOP
Packit Service 4684c1
.  it 1 an-trap
Packit Service 4684c1
.  if \\n[.$] \,\\$*\/
Packit Service 4684c1
..
Packit Service 4684c1
.ie t \
Packit Service 4684c1
.ds B-Font [CB]
Packit Service 4684c1
.ds I-Font [CI]
Packit Service 4684c1
.ds R-Font [CR]
Packit Service 4684c1
.el \
Packit Service 4684c1
.ds B-Font B
Packit Service 4684c1
.ds I-Font I
Packit Service 4684c1
.ds R-Font R
Packit Service 4684c1
.TH danetool 1 "03 Jun 2020" "3.6.14" "User Commands"
Packit Service 4684c1
.\"
Packit Service 4684c1
.\" DO NOT EDIT THIS FILE (in-mem file)
Packit Service 4684c1
.\"
Packit Service 4684c1
.\" It has been AutoGen-ed
Packit Service 4684c1
.\" From the definitions ../../src/danetool-args.def.tmp
Packit Service 4684c1
.\" and the template file agman-cmd.tpl
Packit Service 4684c1
.SH NAME
Packit Service 4684c1
\f\*[B-Font]danetool\fP
Packit Service 4684c1
\- GnuTLS DANE tool
Packit Service 4684c1
.SH SYNOPSIS
Packit Service 4684c1
\f\*[B-Font]danetool\fP
Packit Service 4684c1
.\" Mixture of short (flag) options and long options
Packit Service 4684c1
[\f\*[B-Font]\-flags\f[]]
Packit Service 4684c1
[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
Packit Service 4684c1
[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
Packit Service 4684c1
.sp \n(Ppu
Packit Service 4684c1
.ne 2
Packit Service 4684c1
Packit Service 4684c1
All arguments must be options.
Packit Service 4684c1
.sp \n(Ppu
Packit Service 4684c1
.ne 2
Packit Service 4684c1
Packit Service 4684c1
.SH "DESCRIPTION"
Packit Service 4684c1
Tool to generate and check DNS resource records for the DANE protocol.
Packit Service 4684c1
.SH "OPTIONS"
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-debug\f[]=\f\*[I-Font]number\f[]
Packit Service 4684c1
Enable debugging.
Packit Service 4684c1
This option takes an integer number as its argument.
Packit Service 4684c1
The value of
Packit Service 4684c1
\f\*[I-Font]number\f[]
Packit Service 4684c1
is constrained to being:
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
.na
Packit Service 4684c1
in the range  0 through 9999
Packit Service 4684c1
.fi
Packit Service 4684c1
.in -4
Packit Service 4684c1
.sp
Packit Service 4684c1
Specifies the debug level.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-V\f[], \f\*[B-Font]\-\-verbose\f[]
Packit Service 4684c1
More verbose output.
Packit Service 4684c1
This option may appear an unlimited number of times.
Packit Service 4684c1
.sp
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-infile\f[]=\f\*[I-Font]file\f[]
Packit Service 4684c1
Input file.
Packit Service 4684c1
.sp
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-outfile\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Output file.
Packit Service 4684c1
.sp
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-load\-pubkey\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Loads a public key file.
Packit Service 4684c1
.sp
Packit Service 4684c1
This can be either a file or a PKCS #11 URL
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-load\-certificate\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Loads a certificate file.
Packit Service 4684c1
.sp
Packit Service 4684c1
This can be either a file or a PKCS #11 URL
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-dlv\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Sets a DLV file.
Packit Service 4684c1
.sp
Packit Service 4684c1
This sets a DLV file to be used for DNSSEC verification.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-hash\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Hash algorithm to use for signing.
Packit Service 4684c1
.sp
Packit Service 4684c1
Available hash functions are SHA1, RMD160, SHA256, SHA384, SHA512.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-check\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
Check a host's DANE TLSA entry.
Packit Service 4684c1
.sp
Packit Service 4684c1
Obtains the DANE TLSA entry from the given hostname and prints information. Note that the actual certificate of the host can be provided using \--load-certificate, otherwise danetool will connect to the server to obtain it. The exit code on verification success will be zero.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-check\-ee\f[]
Packit Service 4684c1
Check only the end-entity's certificate.
Packit Service 4684c1
.sp
Packit Service 4684c1
Checks the end-entity's certificate only. Trust anchors or CAs are not considered.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-check\-ca\f[]
Packit Service 4684c1
Check only the CA's certificate.
Packit Service 4684c1
.sp
Packit Service 4684c1
Checks the trust anchor's and CA's certificate only. End-entities are not considered.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-tlsa\-rr\f[]
Packit Service 4684c1
Print the DANE RR data on a certificate or public key.
Packit Service 4684c1
This option must appear in combination with the following options:
Packit Service 4684c1
host.
Packit Service 4684c1
.sp
Packit Service 4684c1
This command prints the DANE RR data needed to enable DANE on a DNS server.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-host\f[]=\f\*[I-Font]hostname\f[]
Packit Service 4684c1
Specify the hostname to be used in the DANE RR.
Packit Service 4684c1
.sp
Packit Service 4684c1
This command sets the hostname for the DANE RR.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-proto\f[]=\f\*[I-Font]protocol\f[]
Packit Service 4684c1
The protocol set for DANE data (tcp, udp etc.).
Packit Service 4684c1
.sp
Packit Service 4684c1
This command specifies the protocol for the service set in the DANE data.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-port\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
The port or service to connect to, for DANE data.
Packit Service 4684c1
.sp
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-app-proto\f[]
Packit Service 4684c1
This is an alias for the \fI--starttls-proto\fR option.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-starttls\-proto\f[]=\f\*[I-Font]string\f[]
Packit Service 4684c1
The application protocol to be used to obtain the server's certificate (https, ftp, smtp, imap, ldap, xmpp, lmtp, pop3, nntp, sieve, postgres).
Packit Service 4684c1
.sp
Packit Service 4684c1
When the server's certificate isn't provided danetool will connect to the server to obtain the certificate. In that case it is required to know the protocol to talk with the server prior to initiating the TLS handshake.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-ca\f[]
Packit Service 4684c1
Whether the provided certificate or public key is a Certificate Authority.
Packit Service 4684c1
.sp
Packit Service 4684c1
Marks the DANE RR as a CA certificate if specified.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-x509\f[]
Packit Service 4684c1
Use the hash of the X.509 certificate, rather than the public key.
Packit Service 4684c1
.sp
Packit Service 4684c1
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.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-local\f[]
Packit Service 4684c1
This is an alias for the \fI--domain\fR option.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-domain\f[], \f\*[B-Font]\-\-no\-domain\f[]
Packit Service 4684c1
The provided certificate or public key is issued by the local domain.
Packit Service 4684c1
The \fIno\-domain\fP form will disable the option.
Packit Service 4684c1
This option is enabled by default.
Packit Service 4684c1
.sp
Packit Service 4684c1
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.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-local\-dns\f[], \f\*[B-Font]\-\-no\-local\-dns\f[]
Packit Service 4684c1
Use the local DNS server for DNSSEC resolving.
Packit Service 4684c1
The \fIno\-local\-dns\fP form will disable the option.
Packit Service 4684c1
.sp
Packit Service 4684c1
This option will use the local DNS server for DNSSEC.
Packit Service 4684c1
This is disabled by default due to many servers not allowing DNSSEC.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-insecure\f[]
Packit Service 4684c1
Do not verify any DNSSEC signature.
Packit Service 4684c1
.sp
Packit Service 4684c1
Ignores any DNSSEC signature verification results.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-inder\f[], \f\*[B-Font]\-\-no\-inder\f[]
Packit Service 4684c1
Use DER format for input certificates and private keys.
Packit Service 4684c1
The \fIno\-inder\fP form will disable the option.
Packit Service 4684c1
.sp
Packit Service 4684c1
The input files will be assumed to be in DER or RAW format. 
Packit Service 4684c1
Unlike options that in PEM input would allow multiple input data (e.g. multiple 
Packit Service 4684c1
certificates), when reading in DER format a single data structure is read.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-inraw\f[]
Packit Service 4684c1
This is an alias for the \fI--inder\fR option.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-print\-raw\f[], \f\*[B-Font]\-\-no\-print\-raw\f[]
Packit Service 4684c1
Print the received DANE data in raw format.
Packit Service 4684c1
The \fIno\-print\-raw\fP form will disable the option.
Packit Service 4684c1
.sp
Packit Service 4684c1
This option will print the received DANE data.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\-quiet\f[]
Packit Service 4684c1
Suppress several informational messages.
Packit Service 4684c1
.sp
Packit Service 4684c1
In that case on the exit code can be used as an indication of verification success
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-help\f[]
Packit Service 4684c1
Display usage information and exit.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
Packit Service 4684c1
Pass the extended usage information through a pager.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}]
Packit Service 4684c1
Output version of program and exit.  The default mode is `v', a simple
Packit Service 4684c1
version.  The `c' mode will print copyright information and `n' will
Packit Service 4684c1
print the full copyright notice.
Packit Service 4684c1
.PP
Packit Service 4684c1
.SH EXAMPLES
Packit Service 4684c1
.br
Packit Service 4684c1
\fBDANE TLSA RR generation\fP
Packit Service 4684c1
.br
Packit Service 4684c1
.sp
Packit Service 4684c1
To create a DANE TLSA resource record for a certificate (or public key) 
Packit Service 4684c1
that was issued localy and may or may not be signed by a CA use the following command.
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-tlsa\-rr \-\-host www.example.com \-\-load\-certificate cert.pem
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.sp
Packit Service 4684c1
To create a DANE TLSA resource record for a CA signed certificate, which will
Packit Service 4684c1
be marked as such use the following command.
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-tlsa\-rr \-\-host www.example.com \-\-load\-certificate cert.pem \
Packit Service 4684c1
  \-\-no\-domain
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.sp
Packit Service 4684c1
The former is useful to add in your DNS entry even if your certificate is signed 
Packit Service 4684c1
by a CA. That way even users who do not trust your CA will be able to verify your
Packit Service 4684c1
certificate using DANE.
Packit Service 4684c1
.sp
Packit Service 4684c1
In order to create a record for the CA signer of your certificate use the following.
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-tlsa\-rr \-\-host www.example.com \-\-load\-certificate cert.pem \
Packit Service 4684c1
  \-\-ca \-\-no\-domain
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.sp
Packit Service 4684c1
To read a server's DANE TLSA entry, use:
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-check www.example.com \-\-proto tcp \-\-port 443
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.sp
Packit Service 4684c1
To verify an HTTPS server's DANE TLSA entry, use:
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-check www.example.com \-\-proto tcp \-\-port 443 \-\-load\-certificate chain.pem
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.sp
Packit Service 4684c1
To verify an SMTP server's DANE TLSA entry, use:
Packit Service 4684c1
.br
Packit Service 4684c1
.in +4
Packit Service 4684c1
.nf
Packit Service 4684c1
$ danetool \-\-check www.example.com \-\-proto tcp \-\-starttls\-proto=smtp \-\-load\-certificate chain.pem
Packit Service 4684c1
.in -4
Packit Service 4684c1
.fi
Packit Service 4684c1
.SH "EXIT STATUS"
Packit Service 4684c1
One of the following exit values will be returned:
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP 0 " (EXIT_SUCCESS)"
Packit Service 4684c1
Successful program execution.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP 1 " (EXIT_FAILURE)"
Packit Service 4684c1
The operation failed or the command syntax was not valid.
Packit Service 4684c1
.TP
Packit Service 4684c1
.NOP 70 " (EX_SOFTWARE)"
Packit Service 4684c1
libopts had an internal operational error.  Please report
Packit Service 4684c1
it to autogen-users@lists.sourceforge.net.  Thank you.
Packit Service 4684c1
.PP
Packit Service 4684c1
.SH "SEE ALSO"
Packit Service 4684c1
    certtool (1)
Packit Service 4684c1
.SH "AUTHORS"
Packit Service 4684c1
Nikos Mavrogiannopoulos, Simon Josefsson and others; see /usr/share/doc/gnutls/AUTHORS for a complete list.
Packit Service 4684c1
.SH "COPYRIGHT"
Packit Service 4684c1
Copyright (C) 2000-2020 Free Software Foundation, and others all rights reserved.
Packit Service 4684c1
This program is released under the terms of the GNU General Public License, version 3 or later.
Packit Service 4684c1
.SH "BUGS"
Packit Service 4684c1
Please send bug reports to: bugs@gnutls.org
Packit Service 4684c1
.SH "NOTES"
Packit Service 4684c1
This manual page was \fIAutoGen\fP-erated from the \fBdanetool\fP
Packit Service 4684c1
option definitions.