blob: c6fd2b0f7b4a3f60a2039aeedb29aee1f9aeccd8 (
plain)
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
|
# task.krebsco.de
a taskd server deployment
# Installation
yaourt -S taskd
cp /usr/share/taskd/pki/generate.client /var/lib/taskd
# configuration
taskd uses pki for login
systemctl enable taskd
systemctl start taskd
export TASKDDATA=/var/lib/taskd
taskd add org Krebs
taskd config --force pid.file $TASKDDIR/taskd.pid
taskd config --force log $TASKDDIR/taskd.log
taskd config --force client.allow '^task [2-9],^taskd,^libtaskd'
# add new client
for a new client we need to create certificates:
# on server
cd /var/lib/taskd
./generate.client username
# give new certs to user
curl -F'p=username.cert.pem' http://paste
curl -F'p=username.key.pem' http://paste
curl -F'p=ca.cert.pem' http://paste
taskd add user krebs username
# outputs <uid>
# on client
mkdir ~/.task
curl http://paste/abcde > username.cert.pem
curl http://paste/efghi > username.key.pem
curl http://paste/jklmn > ca.cert.pem
task config taskd.server task.krebsco.de:53589
task config taskd.credentials 'krebs/makefu/<uid>'
task sync init
|