=head1 NAME
kxc-cryptsetup - Cryptsetup helper to kxc
=head1 SYNOPSIS
B<kxc-cryptsetup> I<NAME>
=head1 DESCRIPTION
L<kxc(1)> is a client for L<kxd(1)>, a key exchange daemon.
kxc-cryptsetup is a convenience wrapper for invoking kxc while taking the
options from the files in F</etc/kxc/>.
=head1 OPTIONS
Its only command-line argument is a descriptive name, which will be used to
find the configuration files.
=head1 FILES
For a given I<NAME> that is passed as the only command-line argument, the
following files are needed:
=over 8
=item F</etc/kxc/NAME.key.pem>
Private key to use.
=item F</etc/kxc/NAME.cert.pem>
Certificate to use. Must match the given key.
=item F</etc/kxc/NAME.server_cert.pem>
Server certificate, used to validate the server.
=item F</etc/kxc/NAME.url>
Contains the URL to the key; usually in the form of C<kxd://server/name>.
=back
=head1 NOTES
By default, cryptsetup tries to get the key only 3 times, and each try
usually fails within a few seconds if the server is not available. So we
recommend using the C<tries=0> option in L<crypttab(5)>, which makes
cryptsetup keep trying until it gets the key. This is useful when the server
can take longer to be available, for example if the client and server boot
at the same time after a power loss.
Note this also means the boot will not continue if the server never becomes
available. A large number like C<tries=100> waits for a while but eventually
gives up.
=head1 CONTACT
L<Main website|https://blitiri.com.ar/p/kxd>.
If you have any questions, comments or patches please send them to
C<albertito@blitiri.com.ar>.
=head1 SEE ALSO
L<kxc(1)>, L<kxd(1)>, L<crypttab(5)>, L<cryptsetup(8)>.