-
Notifications
You must be signed in to change notification settings - Fork 1
/
tlsd.1
67 lines (57 loc) · 1.69 KB
/
tlsd.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.TH tlsd 1
.SH NAME
tlsd - a TLS daemon
.SH SYNOPSIS
tlsd [\fIoption ...\fR] [--] <\fIcommand\fR> [\fIargument ...\fR]
.SH DESCRIPTION
TLSd is a daemon that both accepts and initiates TLS connections, runs
processes, and provides peer certificate's fingerprint as an
environment variable for them. The intent is to facilitate creation
and usage of simple services for peer-to-peer networking.
.SH OPTIONS
.IP "\fB\-k\fR \fIkeyfile\fR"
Private key file to use (default is \fB/etc/tls/key.pem\fR).
.IP "\fB\-c\fR \fIcertfile\fR"
Certificate file to use (default is \fB/etc/tls/cert.pem\fR).
.IP "\fB\-p\fR \fIport\fR"
Port to listen on (default is to use a randomly selected one).
.IP "\fB\-b\fR \fIhost\fR"
Bind address (default is 0.0.0.0).
.IP "\fB\-s\fR \fIsigno\fR"
Send a signal to a child on termination. See \fBsignal\fR(7) for
signal numbers.
.IP \fB\-n\fR
Do not require a peer certificate. This makes the \fBSHA256\fR
environment variable for child processes optional.
.IP "\fB-d\fR \fIdirectory\fR"
Write peer certificates in DER format into a directory.
.IP "\fB\-i\fR \fIident\fR"
Syslog identifier to use.
.IP \fB\-e\fR
Print messages into stderr, in addition to syslog.
.IP \fB\-h\fR
Print a help message and exit.
.SH EXAMPLES
.SS Echo server
.nf
tlsd -e cat
.fi
.SS Authentication
.nf
tlsd -p 5556 -- sh -c 'echo "Hello, ${SHA256}! I am a ${SIDE}."'
.fi
.SS Connection initiation
.nf
echo 'localhost 5600' | tlsd -e echo 'hello'
.fi
.SH SIGNALS
.IP "SIGINT, SIGTERM"
Terminate gracefully.
.IP SIGHUP
Reload key and certificate.
.SH COPYING
This is free and unencumbered software released into the public
domain.
.SH SEE ALSO
\fBfp2alias\fR(1), \fBstd2fifo\fR(1)
See \fBinfo tlsd\fR for more documentation.