keys/tripe-keys.in: Provide `kx-genalg' and `kx-param-genalg' options.
[tripe] / keys / tripe-keys.conf.5.in
CommitLineData
060ca767 1.\" -*-nroff-*-
2.\".
fc916a09
MW
3.\" Manual for the key-management configuration files
4.\"
5.\" (c) 2008 Straylight/Edgeware
6.\"
7.
8.\"----- Licensing notice ---------------------------------------------------
9.\"
10.\" This file is part of Trivial IP Encryption (TrIPE).
11.\"
12.\" TrIPE is free software; you can redistribute it and/or modify
13.\" it under the terms of the GNU General Public License as published by
14.\" the Free Software Foundation; either version 2 of the License, or
15.\" (at your option) any later version.
16.\"
17.\" TrIPE is distributed in the hope that it will be useful,
18.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
19.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20.\" GNU General Public License for more details.
21.\"
22.\" You should have received a copy of the GNU General Public License
23.\" along with TrIPE; if not, write to the Free Software Foundation,
24.\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25.
26.\"--------------------------------------------------------------------------
e99aedcf 27.so ../common/defs.man \" @@@PRE@@@
fc916a09
MW
28.
29.\"--------------------------------------------------------------------------
0647ba7c 30.TH tripe-keys.conf 5tripe "14 September 2005" "Straylight/Edgeware" "TrIPE: Trivial IP Encryption"
fc916a09
MW
31.
32.\"--------------------------------------------------------------------------
060ca767 33.SH "NAME"
fc916a09 34.
060ca767 35tripe-keys.conf \- configuration file format for tripe-keys
fc916a09
MW
36.
37.\"--------------------------------------------------------------------------
060ca767 38.SH "DESCRIPTION"
fc916a09 39.
060ca767 40The
41.B tripe-keys.master
42or
43.B tripe-keys.conf
44file is a simple line-based configuration file read by
45.BR tripe-keys (1).
46Lines may be empty (consist only of whitespace), be comments (first
47non-whitespace character is
48.RB ` # ')
49or have the form
50.IP
51.I name
52.RB [ = ]
53.I value
54.PP
55A
56.I name
57consists of alphanumeric characters and hyphens. Values may contain
58substitutions, of the form
59.BI ${ name } \fR,
60which are replaced by the value assigned to
61.IR name .
e04c2d50 62Many
060ca767 63.IR name s
64have significance to the
65.B tripe-keys
66program: these are described below. Many have sensible defaults.
67.SS "The tripe-keys.master file"
68The client configuration file is built by applying substitutions to the
69.B tripe-keys.master
70file. The following tokens are substituted:
71.TP
72.B @MASTER-SEQUENCE@
73The sequence number of the most recently-added signing key.
74.TP
75.B @HK-MASTER@
76The fingerprint of the signing key identified by
77.BR @MASTER-SEQUENCE@ .
78.SS "Master repository parameters"
79.TP
80.I base-url
81The base URL of the key repository (usually with a trailing
82.RB ` / ').
83Typically, this will be something like
84.RB http://www.distorted.org.uk/vpn/ .
85No default.
86.TP
87.I repos-base
88The basename for the repository archive. Default is
89.BR tripe-keys.tar.gz .
90.TP
91.I sig-base
92The basename template for repository signatures. Default is
93.BR tripe-keys.sig-<SEQ> .
94The
95.RB ` <SEQ> '
96portion, if any, is replaced by the sequence number of the key which
97made the signature.
98.TP
99.I repos-url
100The URL for the key repository tarball. Default is the concatenation of
101.I base-url
102and
103.IR repos-base .
104.TP
105.I sig-url
106The URL template for key repository signatures. Default is the
107concatenation of
bdbd9326 108.I base-url
060ca767 109and
110.IR sig-base .
111.TP
112.I master-sequence
113The sequence number of the master authority's current signing key. No
114default. Usually set up automatically.
115.TP
7858dfa0
MW
116.I master-keygen-flags
117Additional options for generating master keys. Default is
118.RB ` -l '.
119.TP
060ca767 120.I hk-master
121The fingerprint of the current master signing key. No default. Usually
122set up automatically.
b14ccd2f
MW
123.TP
124.I upload-hook
125A shell command to run by
126.B tripe-keys upload
127after it has successfully written the
128.I repos-file
129and
130.IR sig-file s.
131Default is
132.B ": run upload hook"
133which does nothing.
060ca767 134.SS "Crypto parameters"
135.TP
136.I kx
137Key-exchange algorithm to use. Either
e04c2d50 138.B dh
060ca767 139(integer Diffie-Hellman)
140or
141.B ec
142(elliptic curves). The default is
143.BR dh .
f274f202 144.ne 7
060ca767 145.TP
256bc8d0
MW
146.I kx-genalg
147Key generation algorithm name to pass to
148.B "key add"
149when generating keys.
150Default depends on
151.I kx
152as follows.
153.TS
154center;
155| ci | ci |
156| lb | lb |.
157_
158kx kx-genalg
159_
160dh dh
161ec ec
162_
163.TE
164.ne 7
165.TP
166.I kx-param-genalg
167Key generation algorithm name to pass to
168.B "key add"
169when generating the parameters key.
170Default depends on
171.I kx
172as follows.
173.TS
174center;
175| ci | ci |
176| lb | lb |.
177_
178kx kx-param-genalg
179_
180dh dh-param
181ec ec-param
182_
183.TE
184.ne 7
185.TP
060ca767 186.I kx-param
187Options to pass to
188.B "key add"
189when generating the parameters key. Default depends on
190.I kx
191as follows.
192.TS
193center;
194| ci | ci |
195| lb | lb |.
196_
197kx kx-param
198_
ca3aaaeb 199dh \-LS \-b3072 \-B256
060ca767 200ec \-Cnist-p256
201_
202.TE
203.TP
204.I kx-expire
205Expiry time for generated keys. Default is
ca3aaaeb 206.BR "now + 1 year" .
060ca767 207.TP
208.I hash
209Hashing algorithm to use. Default is
210.BR sha256 .
211.TP
212.I mac
213Message authentication algorithm to use. Default is
214.IB hash -hmac/ halfhashlen \fR,
215where
216.I halfhashlen
217is half of
218.IR hash 's
219output length.
220.TP
221.I mgf
222Mask-generation algorithm to use. Default is
223.IB hash -mgf \fR.
224This is probably a good choice.
225.TP
226.I cipher
227Symmetric encryption scheme to use. Default is
b4303459 228.BR rijndael-cbc .
060ca767 229.TP
230.I sig
231Signature scheme to use. Must be one of those recognized by
232.BR catsign (1).
233Default is
234.B dsa
235if
236.I kx
237is
238.BR dh ,
239or
240.B ecdsa
241if
242.I kx
243is
244.BR ec .
f274f202 245.ne 10
060ca767 246.TP
247.I sig-genalg
e04c2d50 248Key-generation algorithm for signing key. Default depends on
060ca767 249.I sig
250as follows.
251.TS
252center;
253| ci | ci |
254| lb | lb |.
255_
256sig sig-genalg
257_
258kcdsa dh
259dsa dsa
260rsapcs1 rsa
261rsapss rsa
262ecdsa ec
263eckcdsa ec
264_
265.TE
f274f202 266.ne 8
060ca767 267.TP
268.I sig-param
269Signature-key generation parameters. Default depends on
270.I sig-genalg
271as follows.
272.TS
273center;
274| ci | ci |
275| lb | lb |.
276_
277sig-genalg sig-param
278_
ca3aaaeb
MW
279dh \-LS \-b3072 \-B256
280dsa \-b3072 \-B256
281rsa \-b3072
060ca767 282ec \-Cnist-p256
283_
284.TE
285.TP
286.I sig-hash
287Hash function to use for making signatures. Default is
288.IR hash .
289.TP
290.I sig-fresh
291Oldest time we should consider a signed archive to be fresh. Default is
292.BR always ,
293meaning that all signatures are fresh.
294.TP
295.I sig-expire
296Expiry time for master signing key. Default is
297.BR forever .
298.TP
299.I fingerprint-hash
300Hash function to use for key fingerprinting. Default is
301.IR hash .
302.SS "Master maintenance parameters"
303.TP
304.I base-dir
305Local base directory for the repository files. This probably ought to
306end in a
307.RB ` / '
838e5ce7
MW
308character. Unexpected files in this directory will be removed by the
309.B tripe-keys upload
310command. No default.
060ca767 311.TP
312.I repos-file
313Filename for local repository tarball. Default is the concatenation of
314.I base-dir
315and
316.IB repos-base .
317.TP
318.I sig-file
ca3aaaeb 319Template for repository signatures. Default is the concatenation of
060ca767 320.I base-dir
321and
322.IR sig-base .
323.TP
324.I conf-file
325Filename for local repository configuration file. Default is
326.IB basedir /tripe-keys.conf \fR.
c2f28e4b
MW
327.TP
328.I kx-warn-days
329The
330.B "tripe-keys check"
331command will warn about keys which will in less than
332.I kx-warn-days
333days. Default is 28.
fc916a09
MW
334.
335.\"--------------------------------------------------------------------------
060ca767 336.SH "SEE ALSO"
fc916a09 337.
060ca767 338.BR tripe (8),
339.BR tripe\-keys (8).
fc916a09
MW
340.
341.\"--------------------------------------------------------------------------
060ca767 342.SH "AUTHOR"
fc916a09 343.
060ca767 344Mark Wooding, <mdw@distorted.org.uk>
fc916a09
MW
345.
346.\"----- That's all, folks --------------------------------------------------