chiark / gitweb /
tripe-keys: Don't hard-code the `-l' flag when generating master keys.
[tripe] / keys / tripe-keys.conf.5
CommitLineData
060ca767 1.\" -*-nroff-*-
2.\".
3.de hP
4.IP
5\h'-\w'\fB\\$1\ \fP'u'\fB\\$1\ \fP\c
6..
7.de VS
8.sp 1
9.RS
10.nf
11.ft B
12..
13.de VE
14.ft R
15.fi
16.RE
17.sp 1
18..
19.ie t \{\
20. ds o \(bu
21. ds ss \s8\u
22. ds se \d\s0
23. if \n(.g \{\
24. fam P
25. \}
26.\}
27.el \{\
28. ds o o
29. ds ss ^
30. ds se
31.\}
32.TH tripe-keys.conf 5 "14 September 2005" "Straylight/Edgeware" "TrIPE: Trivial IP Encryption"
33.SH "NAME"
34tripe-keys.conf \- configuration file format for tripe-keys
35.SH "DESCRIPTION"
36The
37.B tripe-keys.master
38or
39.B tripe-keys.conf
40file is a simple line-based configuration file read by
41.BR tripe-keys (1).
42Lines may be empty (consist only of whitespace), be comments (first
43non-whitespace character is
44.RB ` # ')
45or have the form
46.IP
47.I name
48.RB [ = ]
49.I value
50.PP
51A
52.I name
53consists of alphanumeric characters and hyphens. Values may contain
54substitutions, of the form
55.BI ${ name } \fR,
56which are replaced by the value assigned to
57.IR name .
e04c2d50 58Many
060ca767 59.IR name s
60have significance to the
61.B tripe-keys
62program: these are described below. Many have sensible defaults.
63.SS "The tripe-keys.master file"
64The client configuration file is built by applying substitutions to the
65.B tripe-keys.master
66file. The following tokens are substituted:
67.TP
68.B @MASTER-SEQUENCE@
69The sequence number of the most recently-added signing key.
70.TP
71.B @HK-MASTER@
72The fingerprint of the signing key identified by
73.BR @MASTER-SEQUENCE@ .
74.SS "Master repository parameters"
75.TP
76.I base-url
77The base URL of the key repository (usually with a trailing
78.RB ` / ').
79Typically, this will be something like
80.RB http://www.distorted.org.uk/vpn/ .
81No default.
82.TP
83.I repos-base
84The basename for the repository archive. Default is
85.BR tripe-keys.tar.gz .
86.TP
87.I sig-base
88The basename template for repository signatures. Default is
89.BR tripe-keys.sig-<SEQ> .
90The
91.RB ` <SEQ> '
92portion, if any, is replaced by the sequence number of the key which
93made the signature.
94.TP
95.I repos-url
96The URL for the key repository tarball. Default is the concatenation of
97.I base-url
98and
99.IR repos-base .
100.TP
101.I sig-url
102The URL template for key repository signatures. Default is the
103concatenation of
104.I sig-url
105and
106.IR sig-base .
107.TP
108.I master-sequence
109The sequence number of the master authority's current signing key. No
110default. Usually set up automatically.
111.TP
7858dfa0
MW
112.I master-keygen-flags
113Additional options for generating master keys. Default is
114.RB ` -l '.
115.TP
060ca767 116.I hk-master
117The fingerprint of the current master signing key. No default. Usually
118set up automatically.
b14ccd2f
MW
119.TP
120.I upload-hook
121A shell command to run by
122.B tripe-keys upload
123after it has successfully written the
124.I repos-file
125and
126.IR sig-file s.
127Default is
128.B ": run upload hook"
129which does nothing.
060ca767 130.SS "Crypto parameters"
131.TP
132.I kx
133Key-exchange algorithm to use. Either
e04c2d50 134.B dh
060ca767 135(integer Diffie-Hellman)
136or
137.B ec
138(elliptic curves). The default is
139.BR dh .
140.TP
141.I kx-param
142Options to pass to
143.B "key add"
144when generating the parameters key. Default depends on
145.I kx
146as follows.
147.TS
148center;
149| ci | ci |
150| lb | lb |.
151_
152kx kx-param
153_
154dh \-LS \-b2048 \-B256
155ec \-Cnist-p256
156_
157.TE
158.TP
159.I kx-expire
160Expiry time for generated keys. Default is
161.BR "now + 1 day" .
162.TP
163.I hash
164Hashing algorithm to use. Default is
165.BR sha256 .
166.TP
167.I mac
168Message authentication algorithm to use. Default is
169.IB hash -hmac/ halfhashlen \fR,
170where
171.I halfhashlen
172is half of
173.IR hash 's
174output length.
175.TP
176.I mgf
177Mask-generation algorithm to use. Default is
178.IB hash -mgf \fR.
179This is probably a good choice.
180.TP
181.I cipher
182Symmetric encryption scheme to use. Default is
183.BR blowfish-cbc .
184.TP
185.I sig
186Signature scheme to use. Must be one of those recognized by
187.BR catsign (1).
188Default is
189.B dsa
190if
191.I kx
192is
193.BR dh ,
194or
195.B ecdsa
196if
197.I kx
198is
199.BR ec .
200.TP
201.I sig-genalg
e04c2d50 202Key-generation algorithm for signing key. Default depends on
060ca767 203.I sig
204as follows.
205.TS
206center;
207| ci | ci |
208| lb | lb |.
209_
210sig sig-genalg
211_
212kcdsa dh
213dsa dsa
214rsapcs1 rsa
215rsapss rsa
216ecdsa ec
217eckcdsa ec
218_
219.TE
220.TP
221.I sig-param
222Signature-key generation parameters. Default depends on
223.I sig-genalg
224as follows.
225.TS
226center;
227| ci | ci |
228| lb | lb |.
229_
230sig-genalg sig-param
231_
232dh \-LS \-b2048 \-B256
233dsa \-b2048 \-B256
234rsa \-b2048
235ec \-Cnist-p256
236_
237.TE
238.TP
239.I sig-hash
240Hash function to use for making signatures. Default is
241.IR hash .
242.TP
243.I sig-fresh
244Oldest time we should consider a signed archive to be fresh. Default is
245.BR always ,
246meaning that all signatures are fresh.
247.TP
248.I sig-expire
249Expiry time for master signing key. Default is
250.BR forever .
251.TP
252.I fingerprint-hash
253Hash function to use for key fingerprinting. Default is
254.IR hash .
255.SS "Master maintenance parameters"
256.TP
257.I base-dir
258Local base directory for the repository files. This probably ought to
259end in a
260.RB ` / '
261character. No default.
262.TP
263.I repos-file
264Filename for local repository tarball. Default is the concatenation of
265.I base-dir
266and
267.IB repos-base .
268.TP
269.I sig-file
270Tempalte for repository signatures. Default is the concatenation of
271.I base-dir
272and
273.IR sig-base .
274.TP
275.I conf-file
276Filename for local repository configuration file. Default is
277.IB basedir /tripe-keys.conf \fR.
278.SH "SEE ALSO"
279.BR tripe (8),
280.BR tripe\-keys (8).
281.SH "AUTHOR"
282Mark Wooding, <mdw@distorted.org.uk>