chiark / gitweb /
tripe-keys: Provide upload-hook for more complicated publishing.
[tripe] / keys / tripe-keys.conf.5
... / ...
CommitLineData
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 .
58Many
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
112.I hk-master
113The fingerprint of the current master signing key. No default. Usually
114set up automatically.
115.TP
116.I upload-hook
117A shell command to run by
118.B tripe-keys upload
119after it has successfully written the
120.I repos-file
121and
122.IR sig-file s.
123Default is
124.B ": run upload hook"
125which does nothing.
126.SS "Crypto parameters"
127.TP
128.I kx
129Key-exchange algorithm to use. Either
130.B dh
131(integer Diffie-Hellman)
132or
133.B ec
134(elliptic curves). The default is
135.BR dh .
136.TP
137.I kx-param
138Options to pass to
139.B "key add"
140when generating the parameters key. Default depends on
141.I kx
142as follows.
143.TS
144center;
145| ci | ci |
146| lb | lb |.
147_
148kx kx-param
149_
150dh \-LS \-b2048 \-B256
151ec \-Cnist-p256
152_
153.TE
154.TP
155.I kx-expire
156Expiry time for generated keys. Default is
157.BR "now + 1 day" .
158.TP
159.I hash
160Hashing algorithm to use. Default is
161.BR sha256 .
162.TP
163.I mac
164Message authentication algorithm to use. Default is
165.IB hash -hmac/ halfhashlen \fR,
166where
167.I halfhashlen
168is half of
169.IR hash 's
170output length.
171.TP
172.I mgf
173Mask-generation algorithm to use. Default is
174.IB hash -mgf \fR.
175This is probably a good choice.
176.TP
177.I cipher
178Symmetric encryption scheme to use. Default is
179.BR blowfish-cbc .
180.TP
181.I sig
182Signature scheme to use. Must be one of those recognized by
183.BR catsign (1).
184Default is
185.B dsa
186if
187.I kx
188is
189.BR dh ,
190or
191.B ecdsa
192if
193.I kx
194is
195.BR ec .
196.TP
197.I sig-genalg
198Key-generation algorithm for signing key. Default depends on
199.I sig
200as follows.
201.TS
202center;
203| ci | ci |
204| lb | lb |.
205_
206sig sig-genalg
207_
208kcdsa dh
209dsa dsa
210rsapcs1 rsa
211rsapss rsa
212ecdsa ec
213eckcdsa ec
214_
215.TE
216.TP
217.I sig-param
218Signature-key generation parameters. Default depends on
219.I sig-genalg
220as follows.
221.TS
222center;
223| ci | ci |
224| lb | lb |.
225_
226sig-genalg sig-param
227_
228dh \-LS \-b2048 \-B256
229dsa \-b2048 \-B256
230rsa \-b2048
231ec \-Cnist-p256
232_
233.TE
234.TP
235.I sig-hash
236Hash function to use for making signatures. Default is
237.IR hash .
238.TP
239.I sig-fresh
240Oldest time we should consider a signed archive to be fresh. Default is
241.BR always ,
242meaning that all signatures are fresh.
243.TP
244.I sig-expire
245Expiry time for master signing key. Default is
246.BR forever .
247.TP
248.I fingerprint-hash
249Hash function to use for key fingerprinting. Default is
250.IR hash .
251.SS "Master maintenance parameters"
252.TP
253.I base-dir
254Local base directory for the repository files. This probably ought to
255end in a
256.RB ` / '
257character. No default.
258.TP
259.I repos-file
260Filename for local repository tarball. Default is the concatenation of
261.I base-dir
262and
263.IB repos-base .
264.TP
265.I sig-file
266Tempalte for repository signatures. Default is the concatenation of
267.I base-dir
268and
269.IR sig-base .
270.TP
271.I conf-file
272Filename for local repository configuration file. Default is
273.IB basedir /tripe-keys.conf \fR.
274.SH "SEE ALSO"
275.BR tripe (8),
276.BR tripe\-keys (8).
277.SH "AUTHOR"
278Mark Wooding, <mdw@distorted.org.uk>