git » kxd » main » tree

[main] / doc / man / kxc.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 1"
.TH kxc 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 \- Key exchange client
.SH SYNOPSIS
.IX Header "SYNOPSIS"
\&\fBkxc\fR [\fIoptions\fR...]
.SH DESCRIPTION
.IX Header "DESCRIPTION"
kxc is a client for \fBkxd\fR\|(1), a key exchange daemon.
.PP
It will take a client key and certificate, the expected server certificate,
and a URL to the server (like \f(CW\*(C`kxd://server/host1/key1\*(C'\fR), and it will print
on standard output the returned key (the contents of the corresponding key
file on the server).
.PP
There are scripts to tie this with cryptsetup\*(Aqs infrastructure to make the
opening of encrypted devices automatic; see \fBkxc\-cryptsetup\fR\|(1) for the
details.
.SH OPTIONS
.IX Header "OPTIONS"
.IP \fB\-\-client_key\fR=\fIfile\fR 8
.IX Item "--client_key=file"
File containing the client private key (in PAM format).
.IP \fB\-\-client_cert\fR=\fIfile\fR 8
.IX Item "--client_cert=file"
File containing the client certificate that corresponds to the given key (in
PAM format).
.IP \fB\-\-server_cert\fR=\fIfile\fR 8
.IX Item "--server_cert=file"
File containing valid server certificate (in PAM format).
.IP \fB\-\-timeout\fR=\fIduration\fR 8
.IX Item "--timeout=duration"
Maximum time to wait for the key, including connecting to the server, and
the server running its hook. Connecting and the TLS handshake are also
limited to 10 seconds each.
Uses Go\*(Aqs duration syntax, like \f(CW\*(C`90s\*(C'\fR or \f(CW\*(C`2m\*(C'\fR (default: 2m).
.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\-cryptsetup\fR\|(1), \fBkxd\fR\|(1).