git » kxd » main » tree

[main] / doc / man / kxc-cryptsetup.1

.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.48)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\"
.\" Required to disable full justification in groff 1.23.0.
.if n .ds AD l
.\" ========================================================================
.\"
.IX Title "kxc-cryptsetup 1"
.TH kxc-cryptsetup 1 2026-11-29 "" ""
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
kxc\-cryptsetup \- Cryptsetup helper to kxc
.SH SYNOPSIS
.IX Header "SYNOPSIS"
\&\fBkxc\-cryptsetup\fR \fINAME\fR
.SH DESCRIPTION
.IX Header "DESCRIPTION"
\&\fBkxc\fR\|(1) is a client for \fBkxd\fR\|(1), a key exchange daemon.
.PP
kxc\-cryptsetup is a convenience wrapper for invoking kxc while taking the
options from the files in \fI/etc/kxc/\fR.
.SH OPTIONS
.IX Header "OPTIONS"
Its only command\-line argument is a descriptive name, which will be used to
find the configuration files.
.SH FILES
.IX Header "FILES"
For a given \fINAME\fR that is passed as the only command\-line argument, the
following files are needed:
.IP \fI/etc/kxc/NAME.key.pem\fR 8
.IX Item "/etc/kxc/NAME.key.pem"
Private key to use.
.IP \fI/etc/kxc/NAME.cert.pem\fR 8
.IX Item "/etc/kxc/NAME.cert.pem"
Certificate to use. Must match the given key.
.IP \fI/etc/kxc/NAME.server_cert.pem\fR 8
.IX Item "/etc/kxc/NAME.server_cert.pem"
Server certificate, used to validate the server.
.IP \fI/etc/kxc/NAME.url\fR 8
.IX Item "/etc/kxc/NAME.url"
Contains the URL to the key; usually in the form of \f(CW\*(C`kxd://server/name\*(C'\fR.
.SH NOTES
.IX Header "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 \f(CW\*(C`tries=0\*(C'\fR option in \fBcrypttab\fR\|(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.
.PP
Note this also means the boot will not continue if the server never becomes
available. A large number like \f(CW\*(C`tries=100\*(C'\fR waits for a while but eventually
gives up.
.SH CONTACT
.IX Header "CONTACT"
Main website <https://blitiri.com.ar/p/kxd>.
.PP
If you have any questions, comments or patches please send them to
\&\f(CW\*(C`albertito@blitiri.com.ar\*(C'\fR.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fBkxc\fR\|(1), \fBkxd\fR\|(1), \fBcrypttab\fR\|(5), \fBcryptsetup\fR\|(8).