Browse Source

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 years ago
parent
commit
332ae3e37a

+ 67
- 0
doc/EN/app_keyserver.org View File

1
+#+TITLE:
2
+#+AUTHOR: Bob Mottram
3
+#+EMAIL: bob@freedombone.net
4
+#+KEYWORDS: freedombone, keyserver
5
+#+DESCRIPTION: How to use KEYSERVER
6
+#+OPTIONS: ^:nil toc:nil
7
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" />
8
+
9
+#+BEGIN_CENTER
10
+[[file:images/logo.png]]
11
+#+END_CENTER
12
+
13
+#+BEGIN_EXPORT html
14
+<center>
15
+<h1>OpenPGP Key Server</h1>
16
+</center>
17
+#+END_EXPORT
18
+
19
+The /web of trust/ is a nice idea, but how trustable is it? If you take a look at how many OpenPGP key servers are out there then there are a two or three main ones and not much else. Can you trust those servers? Who is maintaining them and how often? Is any censorship going on? How hard would it be for adversaries to get implants onto them? In terms of technology this infrastructure is quite old and it could have been neglected for a long time. Once vigilant maintainers might have turned lazy and gotten lax with server security, or been recruited over to the dark side.
20
+
21
+For these kinds of reasons you might prefer to run your own web of trust infrastructure. In simple terms it's a database of GPG public keys which provides a way for users to /find out how to communicate with others securely via email/. You can meet in person and exchange public keys via sneakernet on USB drives, but most users of GPG don't do that. Instead they just download the public key for a given email address from one of the key servers.
22
+
23
+#+BEGIN_CENTER
24
+[[file:images/keyserver.jpg]]
25
+#+END_CENTER
26
+
27
+* Installation
28
+
29
+ssh into the system with:
30
+
31
+#+BEGIN_SRC bash
32
+ssh myusername@mydomain.com -p 2222
33
+#+END_SRC
34
+
35
+Select *Add/Remove Apps* then *keyserver*. You will then be asked for a domain name and if you are using FreeDNS also the code for the domain which can be found under *Dynamic DNS* on the FreeDNS site (the random string from "/quick cron example/" which appears after /update.php?/ and before />>/). For more details on obtaining a domain and making it accessible via dynamic DNS see the [[./faq.html][FAQ]]. Typically the domain name you use will be a subdomain, such as /keys.mydomainname.net/. It will need to be a domain which you have bought somewhere and own and not one of the FreeDNS subdomains, otherwise you won't be able to get a SSL/TLS certificate for it.
36
+
37
+After the install has completed go to *Security settings* and select *Create a new Let's Encrypt certificate* and enter the domain name that you are using for the Key server. If the certificate is obtained successfully then you will see a congratulations message.
38
+
39
+* How to use it
40
+Interaction with the web user interface is pretty minimal and obvious, but most likely you will also want to be able to use your keyserver from the commandline. To do that use the *--keyserver* option. For example to search for a key on your server:
41
+
42
+#+begin_src bash
43
+gpg --keyserver [your keyserver domain] --search-keys [email address]
44
+#+end_src
45
+
46
+
47
+Or to send a key to it:
48
+
49
+#+begin_src bash
50
+gpg --keyserver [your keyserver domain] --send-keys [email address or key ID]
51
+#+end_src
52
+
53
+Or to get a key:
54
+
55
+#+begin_src bash
56
+gpg --keyserver [your keyserver domain] --recv-keys [email address or key ID]
57
+#+end_src
58
+* Sync with other keyservers
59
+Key servers avoid censorship or errors by gossiping between each other and cross referencing the data. You can define which other servers your key server will gossip with by going to the *Administrator control panel*, selecting *App Settings* then *keyserver* then *Sync with other keyserver*.
60
+
61
+It's a good idea not to try to sync with the popular OpenPGP key servers, because those have gigantic databases which may make your server unstable and certainly would make it hard to create backups within a tractable amount of time. This option is mainly intended to sync with other Freedombone systems or small home servers within a particular community.
62
+* Possible problems
63
+OpenPGP key servers are not very well defended from flooding attacks. This means that an adversary could just upload a billion keys to destabilize the server and fill it with nonsense to make it unusable. Since key servers are /fully open to the public/ there isn't anything to prevent that from happening.
64
+
65
+Within the Freedombone system there is a watchdog script which keeps track of the key server database size, and disables the key server if that gets too large. Apart from the usual firewall and web server traffic rate limits, this is a crude but probably practical way of defending against flooding.
66
+
67
+If a flood attack does happen then really the only way to recover is to restore from the last known good backup, which can be done from the *Administrator control panel*.

+ 4
- 0
doc/EN/apps.org View File

79
 A simple kanban system for managing projects or TODO lists.
79
 A simple kanban system for managing projects or TODO lists.
80
 
80
 
81
 [[./app_kanboard.html][How to use it]]
81
 [[./app_kanboard.html][How to use it]]
82
+* Key Server
83
+An OpenPGP key server for storing and retrieving GPG public keys.
84
+
85
+[[./app_keyserver.html][How to use it]]
82
 * Koel
86
 * Koel
83
 Access your music collection from any internet connected device.
87
 Access your music collection from any internet connected device.
84
 
88
 

BIN
img/keyserver.jpg View File


+ 468
- 38
src/freedombone-app-keyserver View File

46
                      KEYSERVER_DOMAIN_NAME
46
                      KEYSERVER_DOMAIN_NAME
47
                      KEYSERVER_CODE)
47
                      KEYSERVER_CODE)
48
 
48
 
49
+function check_keyserver_directory_size {
50
+    dirsize=$(du /var/lib/sks/DB | awk -F ' ' '{print $1}')
51
+    # 500M
52
+    if [ $dirsize -gt 500000 ]; then
53
+        echo "1"
54
+        return
55
+    fi
56
+    echo "0"
57
+}
58
+
59
+function keyserver_watchdog {
60
+    ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')
61
+    ADMIN_EMAIL_ADDRESS=${ADMIN_USERNAME}@${HOSTNAME}
62
+    keyserver_size_warning=$"The SKS keyserver database is getting large. Check that you aren't being spammed"
63
+    keyserver_disabled_warning=$"The SKS keyserver has been disabled because it is getting too large. This is to prevent flooding attacks from crashing the server. You may need to restore the keyserver from backup."
64
+    keyserver_mail_subject_line=$"${PROJECT_NAME} keyserver warning"
65
+    keyserver_mail_subject_line_disabled=$"${PROJECT_NAME} keyserver disabled"
66
+    read_config_param KEYSERVER_DOMAIN_NAME
67
+    keyserver_watchdog_script=/etc/cron.hourly/keyserver-watchdog
68
+    echo '#!/bin/bash' > $keyserver_watchdog_script
69
+    echo "dirsize=\$(du /var/lib/sks/DB | awk -F ' ' '{print \$1}')" >> $keyserver_watchdog_script
70
+    echo 'if [ $dirsize -gt 450000 ]; then' >> $keyserver_watchdog_script
71
+
72
+    echo "  echo \"$keyserver_size_warning\" | mail -s \"$keyserver_mail_subject_line\" $ADMIN_EMAIL_ADDRESS" >> $keyserver_watchdog_script
73
+
74
+    echo '  if [ $dirsize -gt 500000 ]; then' >> $keyserver_watchdog_script
75
+    echo "    nginx_dissite $KEYSERVER_DOMAIN_NAME" >> $keyserver_watchdog_script
76
+    echo '    systemctl stop sks' >> $keyserver_watchdog_script
77
+    echo '    systemctl disable sks' >> $keyserver_watchdog_script
78
+    echo "    echo \"$keyserver_disabled_warning\" | mail -s \"$keyserver_mail_subject_line_disabled\" $ADMIN_EMAIL_ADDRESS" >> $keyserver_watchdog_script
79
+    echo '  fi' >> $keyserver_watchdog_script
80
+    echo 'fi' >> $keyserver_watchdog_script
81
+
82
+    chmod +x $keyserver_watchdog_script
83
+}
84
+
85
+
86
+function configure_firewall_for_keyserver {
87
+    if [[ $ONION_ONLY != "no" ]]; then
88
+        return
89
+    fi
90
+    firewall_add keyserver 11370 tcp
91
+    firewall_add keyserver 11371 tcp
92
+    firewall_add keyserver 11372 tcp
93
+    mark_completed $FUNCNAME
94
+}
95
+
96
+function keyserver_reset_database {
97
+    if [ -d /var/lib/sks/DB ]; then
98
+        rm -rf /var/lib/sks/DB
99
+    fi
100
+    sks build
101
+    chown -Rc debian-sks: /var/lib/sks
102
+    systemctl restart sks
103
+}
104
+
49
 function logging_on_keyserver {
105
 function logging_on_keyserver {
50
     echo -n ''
106
     echo -n ''
51
 }
107
 }
59
 }
115
 }
60
 
116
 
61
 function upgrade_keyserver {
117
 function upgrade_keyserver {
118
+    keyserver_watchdog
119
+
62
     CURR_KEYSERVER_WEB_COMMIT=$(get_completion_param "keyserver web commit")
120
     CURR_KEYSERVER_WEB_COMMIT=$(get_completion_param "keyserver web commit")
63
     if [[ "$CURR_KEYSERVER_WEB_COMMIT" == "$KEYSERVER_WEB_COMMIT" ]]; then
121
     if [[ "$CURR_KEYSERVER_WEB_COMMIT" == "$KEYSERVER_WEB_COMMIT" ]]; then
64
         return
122
         return
96
 }
154
 }
97
 
155
 
98
 function backup_local_keyserver {
156
 function backup_local_keyserver {
99
-    echo -n ''
157
+    # remove any unused log files
158
+    cd /var/lib/sks/DB
159
+    db_archive -d
160
+
161
+    source_directory=/etc/sks
162
+    if [ -d $source_directory ]; then
163
+        systemctl stop sks
164
+        dest_directory=keyserverconfig
165
+        function_check backup_directory_to_usb
166
+        backup_directory_to_usb $source_directory $dest_directory
167
+        systemctl start sks
168
+    fi
169
+    if [[ "$(check_keyserver_directory_size)" != "0" ]]; then
170
+        echo $'WARNING: Keyserver database size is too large to backup'
171
+        return
172
+    fi
173
+    source_directory=/var/lib/sks/DB
174
+    if [ -d $source_directory ]; then
175
+        systemctl stop sks
176
+        dest_directory=keyserver
177
+        function_check backup_directory_to_usb
178
+        backup_directory_to_usb $source_directory $dest_directory
179
+        systemctl start sks
180
+    fi
100
 }
181
 }
101
 
182
 
102
 function restore_local_keyserver {
183
 function restore_local_keyserver {
103
-    echo -n ''
184
+    if [ ! -d /var/lib/sks/DB ]; then
185
+        return
186
+    fi
187
+    echo $"Restoring SKS Keyserver"
188
+    systemctl stop sks
189
+
190
+    temp_restore_dir=/root/tempkeyserverconfig
191
+    function_check restore_directory_from_usb
192
+    restore_directory_from_usb $temp_restore_dir keyserverconfig
193
+    cp -r $temp_restore_dir/etc/sks/* /etc/sks/
194
+    rm -rf $temp_restore_dir
195
+    chown -Rc debian-sks: /etc/sks/sksconf
196
+    chown -Rc debian-sks: /etc/sks/mailsync
197
+
198
+    temp_restore_dir=/root/tempkeyserver
199
+    function_check restore_directory_from_usb
200
+    restore_directory_from_usb $temp_restore_dir keyserver
201
+    mv /var/lib/sks/DB /var/lib/sks/DB_prev
202
+    cp -r $temp_restore_dir/var/lib/sks/DB /var/lib/sks/DB
203
+    if [ ! "$?" = "0" ]; then
204
+        # restore the old database
205
+        rm -rf /var/lib/sks/DB
206
+        mv /var/lib/sks/DB_prev /var/lib/sks/DB
207
+
208
+        rm -rf $temp_restore_dir
209
+        function_check set_user_permissions
210
+        set_user_permissions
211
+        function_check backup_unmount_drive
212
+        backup_unmount_drive
213
+        exit 5627294
214
+    fi
215
+    rm -rf $temp_restore_dir
216
+    chown -Rc debian-sks: /var/lib/sks
217
+
218
+    # remove the old database
219
+    rm -rf /var/lib/sks/DB_prev
220
+
221
+    systemctl enable sks
222
+    systemctl start sks
223
+    nginx_ensite $KEYSERVER_DOMAIN_NAME
104
 }
224
 }
105
 
225
 
106
 function backup_remote_keyserver {
226
 function backup_remote_keyserver {
107
-    echo -n ''
227
+    # remove any unused log files
228
+    cd /var/lib/sks/DB
229
+    db_archive -d
230
+
231
+    source_directory=/etc/sks
232
+    if [ -d $source_directory ]; then
233
+        systemctl stop sks
234
+        dest_directory=keyserverconfig
235
+        function_check backup_directory_to_friend
236
+        backup_directory_to_friend $source_directory $dest_directory
237
+        systemctl start sks
238
+    fi
239
+    if [[ "$(check_keyserver_directory_size)" != "0" ]]; then
240
+        echo $'WARNING: Keyserver database size is too large to backup'
241
+        return
242
+    fi
243
+    source_directory=/var/lib/sks/DB
244
+    if [ -d $source_directory ]; then
245
+        systemctl stop sks
246
+        dest_directory=keyserver
247
+        function_check backup_directory_to_friend
248
+        backup_directory_to_friend $source_directory $dest_directory
249
+        systemctl start sks
250
+    fi
108
 }
251
 }
109
 
252
 
110
 function restore_remote_keyserver {
253
 function restore_remote_keyserver {
111
-    echo -n ''
254
+    if [ ! -d /var/lib/sks/DB ]; then
255
+        return
256
+    fi
257
+    echo $"Restoring SKS Keyserver"
258
+    systemctl stop sks
259
+
260
+    temp_restore_dir=/root/tempkeyserverconfig
261
+    function_check restore_directory_from_friend
262
+    restore_directory_from_friend $temp_restore_dir keyserverconfig
263
+    cp -r $temp_restore_dir/etc/sks/* /etc/sks/
264
+    rm -rf $temp_restore_dir
265
+    chown -Rc debian-sks: /etc/sks/sksconf
266
+    chown -Rc debian-sks: /etc/sks/mailsync
267
+
268
+    temp_restore_dir=/root/tempkeyserver
269
+    function_check restore_directory_from_friend
270
+    restore_directory_from_friend $temp_restore_dir keyserver
271
+    mv /var/lib/sks/DB /var/lib/sks/DB_prev
272
+    cp -r $temp_restore_dir/var/lib/sks/DB /var/lib/sks/DB
273
+    if [ ! "$?" = "0" ]; then
274
+        # restore the old database
275
+        rm -rf /var/lib/sks/DB
276
+        mv /var/lib/sks/DB_prev /var/lib/sks/DB
277
+
278
+        rm -rf $temp_restore_dir
279
+        function_check set_user_permissions
280
+        set_user_permissions
281
+        return
282
+    fi
283
+    rm -rf $temp_restore_dir
284
+    chown -Rc debian-sks: /var/lib/sks
285
+
286
+    # remove the old database
287
+    rm -rf /var/lib/sks/DB_prev
288
+
289
+    systemctl enable sks
290
+    systemctl start sks
291
+    nginx_ensite $KEYSERVER_DOMAIN_NAME
112
 }
292
 }
113
 
293
 
114
 function remove_keyserver {
294
 function remove_keyserver {
115
     systemctl stop sks
295
     systemctl stop sks
116
-    apt-get -qy remove sks
296
+    if [ -f /etc/cron.hourly/keyserver-watchdog ]; then
297
+        rm /etc/cron.hourly/keyserver-watchdog
298
+    fi
299
+    apt-get -qy remove sks dirmngr
117
 
300
 
118
     read_config_param "KEYSERVER_DOMAIN_NAME"
301
     read_config_param "KEYSERVER_DOMAIN_NAME"
119
     nginx_dissite $KEYSERVER_DOMAIN_NAME
302
     nginx_dissite $KEYSERVER_DOMAIN_NAME
131
     remove_config_param KEYSERVER_CODE
314
     remove_config_param KEYSERVER_CODE
132
     function_check remove_onion_service
315
     function_check remove_onion_service
133
     remove_onion_service keyserver ${KEYSERVER_ONION_PORT}
316
     remove_onion_service keyserver ${KEYSERVER_ONION_PORT}
317
+    remove_onion_service sks 11370 11371 11372
134
     remove_completion_param "install_keyserver"
318
     remove_completion_param "install_keyserver"
135
 
319
 
320
+    firewall_remove 11370 tcp
321
+    firewall_remove 11371 tcp
322
+    firewall_remove 11372 tcp
323
+
136
     sed -i '/keyserver/d' $COMPLETION_FILE
324
     sed -i '/keyserver/d' $COMPLETION_FILE
325
+    sed -i '/sks onion/d' $COMPLETION_FILE
137
     if [ -d /var/lib/sks ]; then
326
     if [ -d /var/lib/sks ]; then
138
         rm -rf /var/lib/sks
327
         rm -rf /var/lib/sks
139
     fi
328
     fi
154
     APP_INSTALLED=1
343
     APP_INSTALLED=1
155
 }
344
 }
156
 
345
 
346
+function keyserver_create_mailsync {
347
+    echo $"# List of email addresses which submitted keys will be forwarded to" > /etc/sks/mailsync
348
+    echo '' >> /etc/sks/mailsync
349
+    chown -Rc debian-sks: /etc/sks/mailsync
350
+}
351
+
352
+function keyserver_create_membership {
353
+    if [ -f /etc/sks/membership ]; then
354
+        return
355
+    fi
356
+    systemctl stop sks
357
+    echo $"# List of other $PROJECT_NAME SKS Keyservers to sync with." > /etc/sks/membership
358
+    echo '#' >> /etc/sks/membership
359
+    echo $"# Don't add major keyservers here, because it will take an" >> /etc/sks/membership
360
+    echo $'# Infeasible amount of time to sync and backups will become' >> /etc/sks/membership
361
+    echo $'# absurdly long and probably break your system. You have been warned.' >> /etc/sks/membership
362
+    echo '' >> /etc/sks/membership
363
+    chown -Rc debian-sks: /etc/sks/membership
364
+    systemctl start sks
365
+}
366
+
157
 function keyserver_import_keys {
367
 function keyserver_import_keys {
368
+    # NOTE: this function isn't used, but kept for reference
158
     dialog --title $"Import public keys database" \
369
     dialog --title $"Import public keys database" \
159
            --backtitle $"Freedombone Control Panel" \
370
            --backtitle $"Freedombone Control Panel" \
160
            --defaultno \
371
            --defaultno \
176
 
387
 
177
     cd /var/lib/sks
388
     cd /var/lib/sks
178
     echo $'Building the keyserver database from the downloaded dump'
389
     echo $'Building the keyserver database from the downloaded dump'
179
-    sks build
390
+    keyserver_reset_database
391
+}
392
+
393
+function keyserver_sync {
394
+    data=$(tempfile 2>/dev/null)
395
+    trap "rm -f $data" 0 1 2 5 15
396
+    dialog --backtitle $"Freedombone Control Panel" \
397
+           --title $"Sync with other keyserver" \
398
+           --form $"\nEnter details for the other server. Please be aware that it's not a good idea to sync with major keyservers which have exceptionally large databases. This is intended to sync with other $PROJECT_NAME systems each having a small database for a particular community." 16 60 3 \
399
+           $"Domain:" 1 1 "" 1 25 32 64 \
400
+           $"Port:" 2 1 "11370" 2 25 6 6 \
401
+           $"Sync Email (optional):" 3 1 "pgp-public-keys@" 3 25 32 64 \
402
+           2> $data
403
+    sel=$?
404
+    case $sel in
405
+        1) return;;
406
+        255) return;;
407
+    esac
408
+    other_keyserver_domain=$(cat $data | sed -n 1p)
409
+    other_keyserver_port=$(cat $data | sed -n 2p)
410
+    other_keyserver_email=$(cat $data | sed -n 3p)
411
+    if [[ "$other_keyserver_domain" != *'.'* ]]; then
412
+        return
413
+    fi
414
+    if [[ "$other_keyserver_domain" == *' '* ]]; then
415
+        return
416
+    fi
417
+    if [[ "$other_keyserver_port" == *'.'* ]]; then
418
+        return
419
+    fi
420
+    if [[ "$other_keyserver_port" == *' '* ]]; then
421
+        return
422
+    fi
423
+    if [ ${#other_keyserver_domain} -lt 4 ]; then
424
+        return
425
+    fi
426
+    if [ ${#other_keyserver_port} -lt 4 ]; then
427
+        return
428
+    fi
429
+
430
+    # Warn if trying to sync
431
+    if [[ "$other_keyserver_domain" == *"sks-keyservers.net" || "$other_keyserver_domain" == *"gnupg.net" || "$other_keyserver_domain" == *"pgp.com" || "$other_keyserver_domain" == *"pgp.mit.edu" || "$other_keyserver_domain" == *"the.earth.li" || "$other_keyserver_domain" == *"mayfirst.org" || "$other_keyserver_domain" == *"ubuntu.com" ]]; then
432
+        dialog --title $"Sync with other keyserver" \
433
+               --msgbox $"\nDon't try to sync with the major keyservers. Your system will be overloaded with an infeasible database size." 8 60
434
+        return
435
+    fi
436
+
437
+    if [[ "$other_keyserver_email" != "pgp-public-keys@" ]]; then
438
+        if [[ "$other_keyserver_email" == *"@"* ]]; then
439
+            if [[ "$other_keyserver_email" == *"."* ]]; then
440
+                keyserver_create_mailsync
441
+                if ! grep -q "$other_keyserver_email" /etc/sks/mailsync; then
442
+                    echo "$other_keyserver_email" >> /etc/sks/mailsync
443
+                    chown -Rc debian-sks: /etc/sks/mailsync
444
+                fi
445
+            else
446
+                dialog --title $"Sync with other keyserver" \
447
+                       --msgbox $"Email doesn't look right: $other_keyserver_email" 6 60
448
+                return
449
+            fi
450
+        fi
451
+    fi
452
+    keyserver_create_membership
453
+    if grep -q "$other_keyserver_domain $other_keyserver_port" /etc/sks/membership; then
454
+        return
455
+    fi
456
+    if grep -q "$other_keyserver_domain " /etc/sks/membership; then
457
+        sed -i "s|$other_keyserver_domain .*|$other_keyserver_domain $other_keyserver_port|g" /etc/sks/membership
458
+    else
459
+        echo "$other_keyserver_domain $other_keyserver_port" >> /etc/sks/membership
460
+    fi
461
+    chown -Rc debian-sks: /etc/sks/membership
462
+    systemctl restart sks
463
+    dialog --title $"Sync with other keyserver" \
464
+           --msgbox $"Keyserver added" 6 40
465
+}
466
+
467
+function keyserver_edit {
468
+    if [ ! -f /etc/sks/membership ]; then
469
+        return
470
+    fi
471
+    editor /etc/sks/membership
472
+    chown -Rc debian-sks: /etc/sks/membership
473
+    systemctl restart sks
474
+}
475
+
476
+function keyserver_remove_key {
477
+    data=$(tempfile 2>/dev/null)
478
+    trap "rm -f $data" 0 1 2 5 15
479
+    dialog --title $"Remove a key" \
480
+           --backtitle $"Freedombone Control Panel" \
481
+           --inputbox $"Enter the ID of the key which you wish to remove:" 12 60 2>$data
482
+    sel=$?
483
+    case $sel in
484
+        0)
485
+            remove_key_id=$(<$data)
486
+            if [ ${#remove_key_id} -gt 8 ]; then
487
+                sks drop $remove_key_id
488
+                dialog --title $"Remove a key" \
489
+                       --msgbox $"The key was removed" 6 40
490
+            fi
491
+            ;;
492
+    esac
180
 }
493
 }
181
 
494
 
182
 function configure_interactive_keyserver {
495
 function configure_interactive_keyserver {
186
         trap "rm -f $data" 0 1 2 5 15
499
         trap "rm -f $data" 0 1 2 5 15
187
         dialog --backtitle $"Freedombone Control Panel" \
500
         dialog --backtitle $"Freedombone Control Panel" \
188
                --title $"SKS Keyserver" \
501
                --title $"SKS Keyserver" \
189
-               --radiolist $"Choose an operation:" 10 70 2 \
190
-               1 $"Import public keys database" off \
191
-               2 $"Exit" on 2> $data
502
+               --radiolist $"Choose an operation:" 12 70 4 \
503
+               1 $"Remove a key" off \
504
+               2 $"Sync with other keyserver" off \
505
+               3 $"Edit sync keyservers" off \
506
+               4 $"Exit" on 2> $data
192
         sel=$?
507
         sel=$?
193
         case $sel in
508
         case $sel in
194
             1) return;;
509
             1) return;;
195
             255) return;;
510
             255) return;;
196
         esac
511
         esac
197
         case $(cat $data) in
512
         case $(cat $data) in
198
-            1) keyserver_import_keys;;
199
-            2) break;;
513
+            1) keyserver_remove_key;;
514
+            2) keyserver_sync;;
515
+            3) keyserver_edit;;
516
+            4) break;;
200
         esac
517
         esac
201
     done
518
     done
202
 }
519
 }
203
 
520
 
204
 function install_keyserver {
521
 function install_keyserver {
205
     apt-get -qy install build-essential gcc ocaml libdb-dev wget sks
522
     apt-get -qy install build-essential gcc ocaml libdb-dev wget sks
206
-    sks build
207
-    chown -Rc debian-sks: /var/lib/sks/DB
523
+    keyserver_reset_database
208
     sed -i 's|initstart=.*|initstart=yes|g' /etc/default/sks
524
     sed -i 's|initstart=.*|initstart=yes|g' /etc/default/sks
525
+    apt-get -qy install dirmngr
209
     systemctl restart sks
526
     systemctl restart sks
210
 
527
 
211
     if [ ! -d /var/www/$KEYSERVER_DOMAIN_NAME ]; then
528
     if [ ! -d /var/www/$KEYSERVER_DOMAIN_NAME ]; then
254
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/404.html
571
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/404.html
255
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/index.html
572
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/index.html
256
 
573
 
257
-    sksconf_file=/var/lib/sks/sksconf
258
-    echo 'debuglevel: 3' > $sksconf_file
259
-    echo '' >> $sksconf_file
260
-    echo "hostname:                       $KEYSERVER_DOMAIN_NAME" >> $sksconf_file
261
-    echo '' >> $sksconf_file
262
-    echo 'hkp_address:                    127.0.0.1' >> $sksconf_file
263
-    echo "hkp_port:                       $KEYSERVER_PORT" >> $sksconf_file
264
-    echo 'recon_port:                     11370' >> $sksconf_file
265
-    echo '' >> $sksconf_file
266
-    echo "server_contact:                 $GPG_ID" >> $sksconf_file
267
-    echo '' >> $sksconf_file
268
-    echo 'initial_stat:' >> $sksconf_file
269
-    echo 'disable_mailsync:' >> $sksconf_file
270
-    echo 'membership_reload_interval:     1' >> $sksconf_file
271
-    echo 'stat_hour:                      12' >> $sksconf_file
272
-    echo '' >> $sksconf_file
273
-    echo 'max_matches:                    500' >> $sksconf_file
574
+    sksconf_file=/etc/sks/sksconf
575
+    sed -i "s|#hostname:.*|hostname: $KEYSERVER_DOMAIN_NAME|g" $sksconf_file
576
+    sed -i "s|hostname:.*|hostname: $KEYSERVER_DOMAIN_NAME|g" $sksconf_file
577
+    sed -i "s|#hkp_port:.*|hkp_port: 11373|g" $sksconf_file
578
+    sed -i "s|hkp_port:.*|hkp_port: 11373|g" $sksconf_file
579
+    sed -i "s|#recon_port:.*|recon_port: 11370|g" $sksconf_file
580
+    sed -i "s|recon_port:.*|recon_port: 11370|g" $sksconf_file
581
+    sed -i "s|#recon_address:.*|recon_address: 0.0.0.0|g" $sksconf_file
582
+    sed -i "s|recon_address:.*|recon_address: 0.0.0.0|g" $sksconf_file
583
+    sed -i 's|#hkp_address:.*|hkp_address: 127.0.0.1|g' $sksconf_file
584
+    sed -i 's|hkp_address:.*|hkp_address: 127.0.0.1|g' $sksconf_file
585
+    sed -i "s|#from_addr:.*|from_addr: \"pgp-public-keys@$DEFAULT_DOMAIN_NAME\"|g" $sksconf_file
586
+    sed -i "s|from_addr:.*|from_addr: \"pgp-public-keys@$DEFAULT_DOMAIN_NAME\"|g" $sksconf_file
587
+    sed -i 's|#sendmail_cmd:|sendmail_cmd:|g' $sksconf_file
588
+
589
+    if ! grep -q "#disable_mailsync" $sksconf_file; then
590
+        echo '#disable_mailsync:' >> $sksconf_file
591
+    else
592
+        sed -i 's|disable_mailsync:|#disable_mailsync:|g' $sksconf_file
593
+    fi
594
+    if ! grep -q "membership_reload_interval:" $sksconf_file; then
595
+        echo 'membership_reload_interval:     1' >> $sksconf_file
596
+    else
597
+        sed -i 's|#membership_reload_interval:.*|membership_reload_interval:     1|g' $sksconf_file
598
+        sed -i 's|membership_reload_interval:.*|membership_reload_interval:     1|g' $sksconf_file
599
+    fi
600
+    if ! grep -q "max_matches:" $sksconf_file; then
601
+        echo 'max_matches: 50' >> $sksconf_file
602
+    else
603
+        sed -i 's|#max_matches:.*|max_matches: 50|g' $sksconf_file
604
+        sed -i 's|max_matches:.*|max_matches: 50|g' $sksconf_file
605
+    fi
606
+    if ! grep -q "stat_hour:" $sksconf_file; then
607
+        echo "stat_hour: $((1 + RANDOM % 8))" >> $sksconf_file
608
+    else
609
+        sed -i "s|#stat_hour:.*|stat_hour: $((1 + RANDOM % 8))|g" $sksconf_file
610
+        sed -i "s|stat_hour:.*|stat_hour: $((1 + RANDOM % 8))|g" $sksconf_file
611
+    fi
612
+    if ! grep -q "disable_log_diffs:" $sksconf_file; then
613
+        echo "disable_log_diffs:" >> $sksconf_file
614
+    else
615
+        sed -i "s|#disable_log_diffs:.*|disable_log_diffs:|g" $sksconf_file
616
+        sed -i "s|disable_log_diffs:.*|disable_log_diffs:|g" $sksconf_file
617
+    fi
618
+    if ! grep -q "debuglevel:" $sksconf_file; then
619
+        echo "debuglevel: 0" >> $sksconf_file
620
+    else
621
+        sed -i "s|#debuglevel:.*|debuglevel: 0|g" $sksconf_file
622
+        sed -i "s|debuglevel:.*|debuglevel: 0|g" $sksconf_file
623
+    fi
624
+
274
     chown debian-sks: $sksconf_file
625
     chown debian-sks: $sksconf_file
275
 
626
 
627
+    if ! grep -q "hidden_service_sks" /etc/tor/torrc; then
628
+        echo 'HiddenServiceDir /var/lib/tor/hidden_service_sks/' >> /etc/tor/torrc
629
+        echo "HiddenServicePort 11370 127.0.0.1:11370" >> /etc/tor/torrc
630
+        echo "HiddenServicePort 11373 127.0.0.1:11371" >> /etc/tor/torrc
631
+        echo "HiddenServicePort 11372 127.0.0.1:11372" >> /etc/tor/torrc
632
+        echo $'Added onion site for sks'
633
+    fi
634
+
635
+    onion_update
636
+    wait_for_onion_service 'sks'
637
+
638
+    if [ ! -f /var/lib/tor/hidden_service_sks/hostname ]; then
639
+        echo $'sks onion site hostname not found'
640
+        exit 8352982
641
+    fi
642
+    SKS_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_sks/hostname)
643
+
276
     KEYSERVER_ONION_HOSTNAME=$(add_onion_service keyserver 80 ${KEYSERVER_ONION_PORT})
644
     KEYSERVER_ONION_HOSTNAME=$(add_onion_service keyserver 80 ${KEYSERVER_ONION_PORT})
277
 
645
 
278
     keyserver_nginx_site=/etc/nginx/sites-available/$KEYSERVER_DOMAIN_NAME
646
     keyserver_nginx_site=/etc/nginx/sites-available/$KEYSERVER_DOMAIN_NAME
279
     if [[ $ONION_ONLY == "no" ]]; then
647
     if [[ $ONION_ONLY == "no" ]]; then
280
-        function_check nginx_http_redirect
281
-        nginx_http_redirect $KEYSERVER_DOMAIN_NAME
648
+        # NOTE: without http active on port 80 the keyserver doesn't work
649
+        #       from the commandline
650
+        echo 'server {' > $keyserver_nginx_site
651
+        echo '  listen 80;' >> $keyserver_nginx_site
652
+        echo '  listen 0.0.0.0:11371;' >> $keyserver_nginx_site
653
+        echo '  listen [::]:80;' >> $keyserver_nginx_site
654
+        echo "  server_name $KEYSERVER_DOMAIN_NAME;" >> $keyserver_nginx_site
655
+        echo '' >> $keyserver_nginx_site
656
+        echo '  # Logs' >> $keyserver_nginx_site
657
+        echo '  access_log /dev/null;' >> $keyserver_nginx_site
658
+        echo '  error_log /dev/null;' >> $keyserver_nginx_site
659
+        echo '' >> $keyserver_nginx_site
660
+        echo '  # Root' >> $keyserver_nginx_site
661
+        echo "  root /var/www/$KEYSERVER_DOMAIN_NAME/htdocs;" >> $keyserver_nginx_site
662
+        echo '' >> $keyserver_nginx_site
663
+        echo '  rewrite ^/stats /pks/lookup?op=stats;' >> $keyserver_nginx_site
664
+        echo '  rewrite ^/s/(.*) /pks/lookup?search=$1;' >> $keyserver_nginx_site
665
+        echo '  rewrite ^/search/(.*) /pks/lookup?search=$1;' >> $keyserver_nginx_site
666
+        echo '  rewrite ^/g/(.*) /pks/lookup?op=get&search=$1;' >> $keyserver_nginx_site
667
+        echo '  rewrite ^/get/(.*) /pks/lookup?op=get&search=$1;' >> $keyserver_nginx_site
668
+        echo '  rewrite ^/d/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
669
+        echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
670
+        echo '' >> $keyserver_nginx_site
671
+        echo '  location /pks {' >> $keyserver_nginx_site
672
+        echo '    proxy_pass         http://127.0.0.1:11373;' >> $keyserver_nginx_site
673
+        echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
674
+        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:11371 (nginx)\";" >> $keyserver_nginx_site
675
+        echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
676
+        echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
677
+        echo '  }' >> $keyserver_nginx_site
678
+        echo '}' >> $keyserver_nginx_site
679
+        echo '' >> $keyserver_nginx_site
282
         echo 'server {' >> $keyserver_nginx_site
680
         echo 'server {' >> $keyserver_nginx_site
283
         echo '  listen 443 ssl;' >> $keyserver_nginx_site
681
         echo '  listen 443 ssl;' >> $keyserver_nginx_site
682
+        echo '  listen 0.0.0.0:11372 ssl;' >> $keyserver_nginx_site
284
         echo '  listen [::]:443 ssl;' >> $keyserver_nginx_site
683
         echo '  listen [::]:443 ssl;' >> $keyserver_nginx_site
285
         echo "  server_name $KEYSERVER_DOMAIN_NAME;" >> $keyserver_nginx_site
684
         echo "  server_name $KEYSERVER_DOMAIN_NAME;" >> $keyserver_nginx_site
286
         echo '' >> $keyserver_nginx_site
685
         echo '' >> $keyserver_nginx_site
686
+        echo '  error_page 404 /404.html;' >> $keyserver_nginx_site
687
+        echo '' >> $keyserver_nginx_site
688
+        echo '  location ~ (.git|LICENSE|readme.md) {' >> $keyserver_nginx_site
689
+        echo '    deny all;' >> $keyserver_nginx_site
690
+        echo '    return 404;' >> $keyserver_nginx_site
691
+        echo '  }' >> $keyserver_nginx_site
692
+        echo '' >> $keyserver_nginx_site
287
         echo '  # Security' >> $keyserver_nginx_site
693
         echo '  # Security' >> $keyserver_nginx_site
288
         function_check nginx_ssl
694
         function_check nginx_ssl
289
         nginx_ssl $KEYSERVER_DOMAIN_NAME
695
         nginx_ssl $KEYSERVER_DOMAIN_NAME
310
         echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
716
         echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
311
         echo '' >> $keyserver_nginx_site
717
         echo '' >> $keyserver_nginx_site
312
         echo '  location /pks {' >> $keyserver_nginx_site
718
         echo '  location /pks {' >> $keyserver_nginx_site
313
-        echo "    proxy_pass         http://127.0.0.1:$KEYSERVER_PORT;" >> $keyserver_nginx_site
719
+        echo "    proxy_pass         http://127.0.0.1:11373;" >> $keyserver_nginx_site
314
         echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
720
         echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
315
-        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_PORT (nginx)\";" >> $keyserver_nginx_site
721
+        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:11372 (nginx)\";" >> $keyserver_nginx_site
316
         echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
722
         echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
317
         echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
723
         echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
318
         echo '  }' >> $keyserver_nginx_site
724
         echo '  }' >> $keyserver_nginx_site
322
         echo -n '' > $keyserver_nginx_site
728
         echo -n '' > $keyserver_nginx_site
323
     fi
729
     fi
324
     echo 'server {' >> $keyserver_nginx_site
730
     echo 'server {' >> $keyserver_nginx_site
325
-    echo "    listen 127.0.0.1:$KEYSERVER_ONION_PORT default_server;" >> $keyserver_nginx_site
326
-    echo "    server_name $KEYSERVER_ONION_HOSTNAME;" >> $keyserver_nginx_site
731
+    echo "  listen 127.0.0.1:$KEYSERVER_ONION_PORT default_server;" >> $keyserver_nginx_site
732
+    echo "  server_name $KEYSERVER_ONION_HOSTNAME;" >> $keyserver_nginx_site
733
+    echo '' >> $keyserver_nginx_site
734
+    echo '  error_page 404 /404.html;' >> $keyserver_nginx_site
735
+    echo '' >> $keyserver_nginx_site
736
+    echo '  location ~ (.git|LICENSE|readme.md) {' >> $keyserver_nginx_site
737
+    echo '    deny all;' >> $keyserver_nginx_site
738
+    echo '    return 404;' >> $keyserver_nginx_site
739
+    echo '  }' >> $keyserver_nginx_site
327
     echo '' >> $keyserver_nginx_site
740
     echo '' >> $keyserver_nginx_site
328
     function_check nginx_disable_sniffing
741
     function_check nginx_disable_sniffing
329
     nginx_disable_sniffing $KEYSERVER_DOMAIN_NAME
742
     nginx_disable_sniffing $KEYSERVER_DOMAIN_NAME
344
     echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
757
     echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
345
     echo '' >> $keyserver_nginx_site
758
     echo '' >> $keyserver_nginx_site
346
     echo '  location /pks {' >> $keyserver_nginx_site
759
     echo '  location /pks {' >> $keyserver_nginx_site
347
-    echo "    proxy_pass         http://127.0.0.1:$KEYSERVER_PORT;" >> $keyserver_nginx_site
760
+    echo "    proxy_pass         http://127.0.0.1:11373;" >> $keyserver_nginx_site
348
     echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
761
     echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
349
-    echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_PORT (nginx)\";" >> $keyserver_nginx_site
762
+    echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_ONION_PORT (nginx)\";" >> $keyserver_nginx_site
350
     echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
763
     echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
351
     echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
764
     echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
352
     echo '  }' >> $keyserver_nginx_site
765
     echo '  }' >> $keyserver_nginx_site
373
     function_check nginx_ensite
786
     function_check nginx_ensite
374
     nginx_ensite $KEYSERVER_DOMAIN_NAME
787
     nginx_ensite $KEYSERVER_DOMAIN_NAME
375
 
788
 
789
+    configure_firewall_for_keyserver
790
+
791
+    # remove membership file - don't try to sync with other keyservers
792
+    if [ -f /etc/sks/membership ]; then
793
+        rm /etc/sks/membership
794
+    fi
795
+
796
+    if ! grep -q "pgp-public-keys" /etc/aliases; then
797
+        echo 'pgp-public-keys:      "|/usr/lib/sks/sks_add_mail /etc/sks"' >> /etc/aliases
798
+    fi
799
+    chown -Rc debian-sks: /etc/sks/mailsync
800
+
801
+    systemctl enable sks
802
+    systemctl restart sks
376
     systemctl restart nginx
803
     systemctl restart nginx
377
 
804
 
378
     set_completion_param "keyserver domain" "$KEYSERVER_DOMAIN_NAME"
805
     set_completion_param "keyserver domain" "$KEYSERVER_DOMAIN_NAME"
379
     set_completion_param "keyserver onion domain" "$KEYSERVER_ONION_HOSTNAME"
806
     set_completion_param "keyserver onion domain" "$KEYSERVER_ONION_HOSTNAME"
807
+    set_completion_param "sks onion domain" "$SKS_ONION_HOSTNAME"
808
+
809
+    keyserver_watchdog
380
 
810
 
381
     APP_INSTALLED=1
811
     APP_INSTALLED=1
382
 }
812
 }

+ 6
- 0
src/freedombone-controlpanel View File

351
         echo -n -e "$(pad_string ${DEFAULT_DOMAIN_NAME})"
351
         echo -n -e "$(pad_string ${DEFAULT_DOMAIN_NAME})"
352
         echo "$(cat ${COMPLETION_FILE} | grep 'email onion domain' | awk -F ':' '{print $2}')"
352
         echo "$(cat ${COMPLETION_FILE} | grep 'email onion domain' | awk -F ':' '{print $2}')"
353
     fi
353
     fi
354
+    if grep -q "sks onion domain" $COMPLETION_FILE; then
355
+        read_config_param "KEYSERVER_DOMAIN_NAME"
356
+        echo -n -e "$(pad_string 'SKS')"
357
+        echo -n -e "$(pad_string ${KEYSERVER_DOMAIN_NAME})"
358
+        echo "$(cat ${COMPLETION_FILE} | grep 'sks onion domain' | awk -F ':' '{print $2}')"
359
+    fi
354
 
360
 
355
     for app_name in "${APPS_INSTALLED_NAMES[@]}"
361
     for app_name in "${APPS_INSTALLED_NAMES[@]}"
356
     do
362
     do

+ 6
- 0
src/freedombone-upgrade View File

67
 
67
 
68
 update-ca-certificates
68
 update-ca-certificates
69
 
69
 
70
+# remove any keyserver log files
71
+if [ -d /var/lib/sks/DB ]; then
72
+    cd /var/lib/sks/DB
73
+    db_archive -d
74
+fi
75
+
70
 if [ ! -d $PROJECT_DIR ]; then
76
 if [ ! -d $PROJECT_DIR ]; then
71
     git_clone $PROJECT_REPO $PROJECT_DIR
77
     git_clone $PROJECT_REPO $PROJECT_DIR
72
 fi
78
 fi

+ 375
- 0
website/EN/app_keyserver.html View File

1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
+<head>
6
+<!-- 2017-07-30 Sun 18:18 -->
7
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+<meta name="viewport" content="width=device-width, initial-scale=1" />
9
+<title></title>
10
+<meta name="generator" content="Org mode" />
11
+<meta name="author" content="Bob Mottram" />
12
+<meta name="description" content="How to use KEYSERVER"
13
+ />
14
+<meta name="keywords" content="freedombone, keyserver" />
15
+<style type="text/css">
16
+ <!--/*--><![CDATA[/*><!--*/
17
+  .title  { text-align: center;
18
+             margin-bottom: .2em; }
19
+  .subtitle { text-align: center;
20
+              font-size: medium;
21
+              font-weight: bold;
22
+              margin-top:0; }
23
+  .todo   { font-family: monospace; color: red; }
24
+  .done   { font-family: monospace; color: green; }
25
+  .priority { font-family: monospace; color: orange; }
26
+  .tag    { background-color: #eee; font-family: monospace;
27
+            padding: 2px; font-size: 80%; font-weight: normal; }
28
+  .timestamp { color: #bebebe; }
29
+  .timestamp-kwd { color: #5f9ea0; }
30
+  .org-right  { margin-left: auto; margin-right: 0px;  text-align: right; }
31
+  .org-left   { margin-left: 0px;  margin-right: auto; text-align: left; }
32
+  .org-center { margin-left: auto; margin-right: auto; text-align: center; }
33
+  .underline { text-decoration: underline; }
34
+  #postamble p, #preamble p { font-size: 90%; margin: .2em; }
35
+  p.verse { margin-left: 3%; }
36
+  pre {
37
+    border: 1px solid #ccc;
38
+    box-shadow: 3px 3px 3px #eee;
39
+    padding: 8pt;
40
+    font-family: monospace;
41
+    overflow: auto;
42
+    margin: 1.2em;
43
+  }
44
+  pre.src {
45
+    position: relative;
46
+    overflow: visible;
47
+    padding-top: 1.2em;
48
+  }
49
+  pre.src:before {
50
+    display: none;
51
+    position: absolute;
52
+    background-color: white;
53
+    top: -10px;
54
+    right: 10px;
55
+    padding: 3px;
56
+    border: 1px solid black;
57
+  }
58
+  pre.src:hover:before { display: inline;}
59
+  /* Languages per Org manual */
60
+  pre.src-asymptote:before { content: 'Asymptote'; }
61
+  pre.src-awk:before { content: 'Awk'; }
62
+  pre.src-C:before { content: 'C'; }
63
+  /* pre.src-C++ doesn't work in CSS */
64
+  pre.src-clojure:before { content: 'Clojure'; }
65
+  pre.src-css:before { content: 'CSS'; }
66
+  pre.src-D:before { content: 'D'; }
67
+  pre.src-ditaa:before { content: 'ditaa'; }
68
+  pre.src-dot:before { content: 'Graphviz'; }
69
+  pre.src-calc:before { content: 'Emacs Calc'; }
70
+  pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
71
+  pre.src-fortran:before { content: 'Fortran'; }
72
+  pre.src-gnuplot:before { content: 'gnuplot'; }
73
+  pre.src-haskell:before { content: 'Haskell'; }
74
+  pre.src-hledger:before { content: 'hledger'; }
75
+  pre.src-java:before { content: 'Java'; }
76
+  pre.src-js:before { content: 'Javascript'; }
77
+  pre.src-latex:before { content: 'LaTeX'; }
78
+  pre.src-ledger:before { content: 'Ledger'; }
79
+  pre.src-lisp:before { content: 'Lisp'; }
80
+  pre.src-lilypond:before { content: 'Lilypond'; }
81
+  pre.src-lua:before { content: 'Lua'; }
82
+  pre.src-matlab:before { content: 'MATLAB'; }
83
+  pre.src-mscgen:before { content: 'Mscgen'; }
84
+  pre.src-ocaml:before { content: 'Objective Caml'; }
85
+  pre.src-octave:before { content: 'Octave'; }
86
+  pre.src-org:before { content: 'Org mode'; }
87
+  pre.src-oz:before { content: 'OZ'; }
88
+  pre.src-plantuml:before { content: 'Plantuml'; }
89
+  pre.src-processing:before { content: 'Processing.js'; }
90
+  pre.src-python:before { content: 'Python'; }
91
+  pre.src-R:before { content: 'R'; }
92
+  pre.src-ruby:before { content: 'Ruby'; }
93
+  pre.src-sass:before { content: 'Sass'; }
94
+  pre.src-scheme:before { content: 'Scheme'; }
95
+  pre.src-screen:before { content: 'Gnu Screen'; }
96
+  pre.src-sed:before { content: 'Sed'; }
97
+  pre.src-sh:before { content: 'shell'; }
98
+  pre.src-sql:before { content: 'SQL'; }
99
+  pre.src-sqlite:before { content: 'SQLite'; }
100
+  /* additional languages in org.el's org-babel-load-languages alist */
101
+  pre.src-forth:before { content: 'Forth'; }
102
+  pre.src-io:before { content: 'IO'; }
103
+  pre.src-J:before { content: 'J'; }
104
+  pre.src-makefile:before { content: 'Makefile'; }
105
+  pre.src-maxima:before { content: 'Maxima'; }
106
+  pre.src-perl:before { content: 'Perl'; }
107
+  pre.src-picolisp:before { content: 'Pico Lisp'; }
108
+  pre.src-scala:before { content: 'Scala'; }
109
+  pre.src-shell:before { content: 'Shell Script'; }
110
+  pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
111
+  /* additional language identifiers per "defun org-babel-execute"
112
+       in ob-*.el */
113
+  pre.src-cpp:before  { content: 'C++'; }
114
+  pre.src-abc:before  { content: 'ABC'; }
115
+  pre.src-coq:before  { content: 'Coq'; }
116
+  pre.src-groovy:before  { content: 'Groovy'; }
117
+  /* additional language identifiers from org-babel-shell-names in
118
+     ob-shell.el: ob-shell is the only babel language using a lambda to put
119
+     the execution function name together. */
120
+  pre.src-bash:before  { content: 'bash'; }
121
+  pre.src-csh:before  { content: 'csh'; }
122
+  pre.src-ash:before  { content: 'ash'; }
123
+  pre.src-dash:before  { content: 'dash'; }
124
+  pre.src-ksh:before  { content: 'ksh'; }
125
+  pre.src-mksh:before  { content: 'mksh'; }
126
+  pre.src-posh:before  { content: 'posh'; }
127
+  /* Additional Emacs modes also supported by the LaTeX listings package */
128
+  pre.src-ada:before { content: 'Ada'; }
129
+  pre.src-asm:before { content: 'Assembler'; }
130
+  pre.src-caml:before { content: 'Caml'; }
131
+  pre.src-delphi:before { content: 'Delphi'; }
132
+  pre.src-html:before { content: 'HTML'; }
133
+  pre.src-idl:before { content: 'IDL'; }
134
+  pre.src-mercury:before { content: 'Mercury'; }
135
+  pre.src-metapost:before { content: 'MetaPost'; }
136
+  pre.src-modula-2:before { content: 'Modula-2'; }
137
+  pre.src-pascal:before { content: 'Pascal'; }
138
+  pre.src-ps:before { content: 'PostScript'; }
139
+  pre.src-prolog:before { content: 'Prolog'; }
140
+  pre.src-simula:before { content: 'Simula'; }
141
+  pre.src-tcl:before { content: 'tcl'; }
142
+  pre.src-tex:before { content: 'TeX'; }
143
+  pre.src-plain-tex:before { content: 'Plain TeX'; }
144
+  pre.src-verilog:before { content: 'Verilog'; }
145
+  pre.src-vhdl:before { content: 'VHDL'; }
146
+  pre.src-xml:before { content: 'XML'; }
147
+  pre.src-nxml:before { content: 'XML'; }
148
+  /* add a generic configuration mode; LaTeX export needs an additional
149
+     (add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
150
+  pre.src-conf:before { content: 'Configuration File'; }
151
+
152
+  table { border-collapse:collapse; }
153
+  caption.t-above { caption-side: top; }
154
+  caption.t-bottom { caption-side: bottom; }
155
+  td, th { vertical-align:top;  }
156
+  th.org-right  { text-align: center;  }
157
+  th.org-left   { text-align: center;   }
158
+  th.org-center { text-align: center; }
159
+  td.org-right  { text-align: right;  }
160
+  td.org-left   { text-align: left;   }
161
+  td.org-center { text-align: center; }
162
+  dt { font-weight: bold; }
163
+  .footpara { display: inline; }
164
+  .footdef  { margin-bottom: 1em; }
165
+  .figure { padding: 1em; }
166
+  .figure p { text-align: center; }
167
+  .inlinetask {
168
+    padding: 10px;
169
+    border: 2px solid gray;
170
+    margin: 10px;
171
+    background: #ffffcc;
172
+  }
173
+  #org-div-home-and-up
174
+   { text-align: right; font-size: 70%; white-space: nowrap; }
175
+  textarea { overflow-x: auto; }
176
+  .linenr { font-size: smaller }
177
+  .code-highlighted { background-color: #ffff00; }
178
+  .org-info-js_info-navigation { border-style: none; }
179
+  #org-info-js_console-label
180
+    { font-size: 10px; font-weight: bold; white-space: nowrap; }
181
+  .org-info-js_search-highlight
182
+    { background-color: #ffff00; color: #000000; font-weight: bold; }
183
+  .org-svg { width: 90%; }
184
+  /*]]>*/-->
185
+</style>
186
+<link rel="stylesheet" type="text/css" href="freedombone.css" />
187
+<script type="text/javascript">
188
+/*
189
+@licstart  The following is the entire license notice for the
190
+JavaScript code in this tag.
191
+
192
+Copyright (C) 2012-2017 Free Software Foundation, Inc.
193
+
194
+The JavaScript code in this tag is free software: you can
195
+redistribute it and/or modify it under the terms of the GNU
196
+General Public License (GNU GPL) as published by the Free Software
197
+Foundation, either version 3 of the License, or (at your option)
198
+any later version.  The code is distributed WITHOUT ANY WARRANTY;
199
+without even the implied warranty of MERCHANTABILITY or FITNESS
200
+FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
201
+
202
+As additional permission under GNU GPL version 3 section 7, you
203
+may distribute non-source (e.g., minimized or compacted) forms of
204
+that code without the copy of the GNU GPL normally required by
205
+section 4, provided you include this license notice and a URL
206
+through which recipients can access the Corresponding Source.
207
+
208
+
209
+@licend  The above is the entire license notice
210
+for the JavaScript code in this tag.
211
+*/
212
+<!--/*--><![CDATA[/*><!--*/
213
+ function CodeHighlightOn(elem, id)
214
+ {
215
+   var target = document.getElementById(id);
216
+   if(null != target) {
217
+     elem.cacheClassElem = elem.className;
218
+     elem.cacheClassTarget = target.className;
219
+     target.className = "code-highlighted";
220
+     elem.className   = "code-highlighted";
221
+   }
222
+ }
223
+ function CodeHighlightOff(elem, id)
224
+ {
225
+   var target = document.getElementById(id);
226
+   if(elem.cacheClassElem)
227
+     elem.className = elem.cacheClassElem;
228
+   if(elem.cacheClassTarget)
229
+     target.className = elem.cacheClassTarget;
230
+ }
231
+/*]]>*///-->
232
+</script>
233
+</head>
234
+<body>
235
+<div id="preamble" class="status">
236
+<a name="top" id="top"></a>
237
+</div>
238
+<div id="content">
239
+<div class="org-center">
240
+
241
+<div class="figure">
242
+<p><img src="images/logo.png" alt="logo.png" />
243
+</p>
244
+</div>
245
+</div>
246
+
247
+<center>
248
+<h1>OpenPGP Key Server</h1>
249
+</center>
250
+
251
+<p>
252
+The <i>web of trust</i> is a nice idea, but how trustable is it? If you take a look at how many OpenPGP key servers are out there then there are a two or three main ones and not much else. Can you trust those servers? Who is maintaining them and how often? Is any censorship going on? How hard would it be for adversaries to get implants onto them? In terms of technology this infrastructure is quite old and it could have been neglected for a long time. Once vigilant maintainers might have turned lazy and gotten lax with server security, or been recruited over to the dark side.
253
+</p>
254
+
255
+<p>
256
+For these kinds of reasons you might prefer to run your own web of trust infrastructure. In simple terms it's a database of GPG public keys which provides a way for users to <i>find out how to communicate with others securely via email</i>. You can meet in person and exchange public keys via sneakernet on USB drives, but most users of GPG don't do that. Instead they just download the public key for a given email address from one of the key servers.
257
+</p>
258
+
259
+<div class="org-center">
260
+
261
+<div class="figure">
262
+<p><img src="images/keyserver.jpg" alt="keyserver.jpg" />
263
+</p>
264
+</div>
265
+</div>
266
+
267
+<div id="outline-container-orgfcf6c32" class="outline-2">
268
+<h2 id="orgfcf6c32">Installation</h2>
269
+<div class="outline-text-2" id="text-orgfcf6c32">
270
+<p>
271
+ssh into the system with:
272
+</p>
273
+
274
+<div class="org-src-container">
275
+<pre><code class="src src-bash">ssh myusername@mydomain.com -p 2222
276
+</code></pre>
277
+</div>
278
+
279
+<p>
280
+Select <b>Add/Remove Apps</b> then <b>keyserver</b>. You will then be asked for a domain name and if you are using FreeDNS also the code for the domain which can be found under <b>Dynamic DNS</b> on the FreeDNS site (the random string from "<i>quick cron example</i>" which appears after <i>update.php?</i> and before <i>&gt;&gt;</i>). For more details on obtaining a domain and making it accessible via dynamic DNS see the <a href="./faq.html">FAQ</a>. Typically the domain name you use will be a subdomain, such as <i>keys.mydomainname.net</i>. It will need to be a domain which you have bought somewhere and own and not one of the FreeDNS subdomains, otherwise you won't be able to get a SSL/TLS certificate for it.
281
+</p>
282
+
283
+<p>
284
+After the install has completed go to <b>Security settings</b> and select <b>Create a new Let's Encrypt certificate</b> and enter the domain name that you are using for the Key server. If the certificate is obtained successfully then you will see a congratulations message.
285
+</p>
286
+</div>
287
+</div>
288
+
289
+<div id="outline-container-org8e2baf7" class="outline-2">
290
+<h2 id="org8e2baf7">How to use it</h2>
291
+<div class="outline-text-2" id="text-org8e2baf7">
292
+<p>
293
+Interaction with the web user interface is pretty minimal and obvious, but most likely you will also want to be able to use your keyserver from the commandline. To do that use the <b>&#x2013;keyserver</b> option. For example to search for a key on your server:
294
+</p>
295
+
296
+<div class="org-src-container">
297
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --search-keys [email address]
298
+</code></pre>
299
+</div>
300
+
301
+
302
+<p>
303
+Or to send a key to it:
304
+</p>
305
+
306
+<div class="org-src-container">
307
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --send-keys [email address or key ID]
308
+</code></pre>
309
+</div>
310
+
311
+<p>
312
+Or to get a key:
313
+</p>
314
+
315
+<div class="org-src-container">
316
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --recv-keys [email address or key ID]
317
+</code></pre>
318
+</div>
319
+</div>
320
+</div>
321
+<div id="outline-container-orgf7e93ae" class="outline-2">
322
+<h2 id="orgf7e93ae">Sync with other keyservers</h2>
323
+<div class="outline-text-2" id="text-orgf7e93ae">
324
+<p>
325
+Key servers avoid censorship or errors by gossiping between each other and cross referencing the data. You can define which other servers your key server will gossip with by going to the <b>Administrator control panel</b>, selecting <b>App Settings</b> then <b>keyserver</b> then <b>Sync with other keyserver</b>.
326
+</p>
327
+
328
+<p>
329
+It's a good idea not to try to sync with the popular OpenPGP key servers, because those have gigantic databases which may make your server unstable and certainly would make it hard to create backups within a tractable amount of time. This option is mainly intended to sync with other Freedombone systems or small home servers within a particular community.
330
+</p>
331
+</div>
332
+</div>
333
+<div id="outline-container-org7be3c82" class="outline-2">
334
+<h2 id="org7be3c82">Possible problems</h2>
335
+<div class="outline-text-2" id="text-org7be3c82">
336
+<p>
337
+OpenPGP key servers are not very well defended from flooding attacks. This means that an adversary could just upload a billion keys to destabilize the server and fill it with nonsense to make it unusable. Since key servers are <i>fully open to the public</i> there isn't anything to prevent that from happening.
338
+</p>
339
+
340
+<p>
341
+Within the Freedombone system there is a watchdog script which keeps track of the key server database size, and disables the key server if that gets too large. Apart from the usual firewall and web server traffic rate limits, this is a crude but probably practical way of defending against flooding.
342
+</p>
343
+
344
+<p>
345
+If a flood attack does happen then really the only way to recover is to restore from the last known good backup, which can be done from the <b>Administrator control panel</b>.
346
+</p>
347
+</div>
348
+</div>
349
+</div>
350
+<div id="postamble" class="status">
351
+
352
+<style type="text/css">
353
+.back-to-top {
354
+    position: fixed;
355
+    bottom: 2em;
356
+    right: 0px;
357
+    text-decoration: none;
358
+    color: #000000;
359
+    background-color: rgba(235, 235, 235, 0.80);
360
+    font-size: 12px;
361
+    padding: 1em;
362
+    display: none;
363
+}
364
+
365
+.back-to-top:hover {
366
+    background-color: rgba(135, 135, 135, 0.50);
367
+}
368
+</style>
369
+
370
+<div class="back-to-top">
371
+<a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
372
+</div>
373
+</div>
374
+</body>
375
+</html>

+ 112
- 100
website/EN/apps.html View File

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-07-25 Tue 23:25 -->
6
+<!-- 2017-07-28 Fri 22:42 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title></title>
9
 <title></title>
264
 </div>
264
 </div>
265
 </div>
265
 </div>
266
 
266
 
267
-<div id="outline-container-org9a19246" class="outline-2">
268
-<h2 id="org9a19246">CryptPad</h2>
269
-<div class="outline-text-2" id="text-org9a19246">
267
+<div id="outline-container-orgbe17d63" class="outline-2">
268
+<h2 id="orgbe17d63">CryptPad</h2>
269
+<div class="outline-text-2" id="text-orgbe17d63">
270
 <p>
270
 <p>
271
 Collaborate on editing documents, presentations and source code, or vote on things. All with a good level of security.
271
 Collaborate on editing documents, presentations and source code, or vote on things. All with a good level of security.
272
 </p>
272
 </p>
276
 </p>
276
 </p>
277
 </div>
277
 </div>
278
 </div>
278
 </div>
279
-<div id="outline-container-orgaf887a3" class="outline-2">
280
-<h2 id="orgaf887a3">DLNA</h2>
281
-<div class="outline-text-2" id="text-orgaf887a3">
279
+<div id="outline-container-orgeb85cd1" class="outline-2">
280
+<h2 id="orgeb85cd1">DLNA</h2>
281
+<div class="outline-text-2" id="text-orgeb85cd1">
282
 <p>
282
 <p>
283
 Enables you to use the system as a music server which any DLNA compatible devices can connect to within your home network.
283
 Enables you to use the system as a music server which any DLNA compatible devices can connect to within your home network.
284
 </p>
284
 </p>
288
 </p>
288
 </p>
289
 </div>
289
 </div>
290
 </div>
290
 </div>
291
-<div id="outline-container-org24b3d95" class="outline-2">
292
-<h2 id="org24b3d95">Dokuwiki</h2>
293
-<div class="outline-text-2" id="text-org24b3d95">
291
+<div id="outline-container-orge7dce56" class="outline-2">
292
+<h2 id="orge7dce56">Dokuwiki</h2>
293
+<div class="outline-text-2" id="text-orge7dce56">
294
 <p>
294
 <p>
295
 A databaseless wiki system.
295
 A databaseless wiki system.
296
 </p>
296
 </p>
300
 </p>
300
 </p>
301
 </div>
301
 </div>
302
 </div>
302
 </div>
303
-<div id="outline-container-orga7568ea" class="outline-2">
304
-<h2 id="orga7568ea">Emacs</h2>
305
-<div class="outline-text-2" id="text-orga7568ea">
303
+<div id="outline-container-org16980fe" class="outline-2">
304
+<h2 id="org16980fe">Emacs</h2>
305
+<div class="outline-text-2" id="text-org16980fe">
306
 <p>
306
 <p>
307
 If you use the Mutt client to read your email then this will set it up to use emacs for composing new mail.
307
 If you use the Mutt client to read your email then this will set it up to use emacs for composing new mail.
308
 </p>
308
 </p>
312
 </p>
312
 </p>
313
 </div>
313
 </div>
314
 </div>
314
 </div>
315
-<div id="outline-container-org3d4300f" class="outline-2">
316
-<h2 id="org3d4300f">Etherpad</h2>
317
-<div class="outline-text-2" id="text-org3d4300f">
315
+<div id="outline-container-orge6eede4" class="outline-2">
316
+<h2 id="orge6eede4">Etherpad</h2>
317
+<div class="outline-text-2" id="text-orge6eede4">
318
 <p>
318
 <p>
319
 Collaborate on creating documents in real time. Maybe you're planning a holiday with other family members or creating documentation for a Free Software project along with other volunteers. Etherpad is hard to beat for simplicity and speed. Only users of the system will be able to access it.
319
 Collaborate on creating documents in real time. Maybe you're planning a holiday with other family members or creating documentation for a Free Software project along with other volunteers. Etherpad is hard to beat for simplicity and speed. Only users of the system will be able to access it.
320
 </p>
320
 </p>
324
 </p>
324
 </p>
325
 </div>
325
 </div>
326
 </div>
326
 </div>
327
-<div id="outline-container-org91f769f" class="outline-2">
328
-<h2 id="org91f769f">Friendica</h2>
329
-<div class="outline-text-2" id="text-org91f769f">
327
+<div id="outline-container-org72aea62" class="outline-2">
328
+<h2 id="org72aea62">Friendica</h2>
329
+<div class="outline-text-2" id="text-org72aea62">
330
 <p>
330
 <p>
331
 Federated social network system.
331
 Federated social network system.
332
 </p>
332
 </p>
336
 </p>
336
 </p>
337
 </div>
337
 </div>
338
 </div>
338
 </div>
339
-<div id="outline-container-org6266e6b" class="outline-2">
340
-<h2 id="org6266e6b">Ghost</h2>
341
-<div class="outline-text-2" id="text-org6266e6b">
339
+<div id="outline-container-org75bbd1d" class="outline-2">
340
+<h2 id="org75bbd1d">Ghost</h2>
341
+<div class="outline-text-2" id="text-org75bbd1d">
342
 <p>
342
 <p>
343
 Modern looking blogging system.
343
 Modern looking blogging system.
344
 </p>
344
 </p>
348
 </p>
348
 </p>
349
 </div>
349
 </div>
350
 </div>
350
 </div>
351
-<div id="outline-container-orge7307c0" class="outline-2">
352
-<h2 id="orge7307c0">GNU Social</h2>
353
-<div class="outline-text-2" id="text-orge7307c0">
351
+<div id="outline-container-org879241a" class="outline-2">
352
+<h2 id="org879241a">GNU Social</h2>
353
+<div class="outline-text-2" id="text-org879241a">
354
 <p>
354
 <p>
355
 Federated social network. You can "<i>remote follow</i>" other users within the GNU Social federation.
355
 Federated social network. You can "<i>remote follow</i>" other users within the GNU Social federation.
356
 </p>
356
 </p>
360
 </p>
360
 </p>
361
 </div>
361
 </div>
362
 </div>
362
 </div>
363
-<div id="outline-container-org42d8a6c" class="outline-2">
364
-<h2 id="org42d8a6c">Gogs</h2>
365
-<div class="outline-text-2" id="text-org42d8a6c">
363
+<div id="outline-container-org0c63c0d" class="outline-2">
364
+<h2 id="org0c63c0d">Gogs</h2>
365
+<div class="outline-text-2" id="text-org0c63c0d">
366
 <p>
366
 <p>
367
 Lightweight git project hosting system. You can mirror projects from Github, or if Github turns evil then just host your own projects while retaining the familiar <i>fork-and-pull</i> workflow. If you can use Github then you can also use Gogs.
367
 Lightweight git project hosting system. You can mirror projects from Github, or if Github turns evil then just host your own projects while retaining the familiar <i>fork-and-pull</i> workflow. If you can use Github then you can also use Gogs.
368
 </p>
368
 </p>
372
 </p>
372
 </p>
373
 </div>
373
 </div>
374
 </div>
374
 </div>
375
-<div id="outline-container-org21d5b80" class="outline-2">
376
-<h2 id="org21d5b80">HTMLy</h2>
377
-<div class="outline-text-2" id="text-org21d5b80">
375
+<div id="outline-container-org8d5a195" class="outline-2">
376
+<h2 id="org8d5a195">HTMLy</h2>
377
+<div class="outline-text-2" id="text-org8d5a195">
378
 <p>
378
 <p>
379
 Databaseless blogging system. Quite simple and with a markdown-like format.
379
 Databaseless blogging system. Quite simple and with a markdown-like format.
380
 </p>
380
 </p>
384
 </p>
384
 </p>
385
 </div>
385
 </div>
386
 </div>
386
 </div>
387
-<div id="outline-container-org47d8fc7" class="outline-2">
388
-<h2 id="org47d8fc7">Hubzilla</h2>
389
-<div class="outline-text-2" id="text-org47d8fc7">
387
+<div id="outline-container-orgbc0a684" class="outline-2">
388
+<h2 id="orgbc0a684">Hubzilla</h2>
389
+<div class="outline-text-2" id="text-orgbc0a684">
390
 <p>
390
 <p>
391
 Web publishing platform with social network like features and good privacy controls so that it's possible to specify who can see which content. Includes photo albums, calendar, wiki and file storage.
391
 Web publishing platform with social network like features and good privacy controls so that it's possible to specify who can see which content. Includes photo albums, calendar, wiki and file storage.
392
 </p>
392
 </p>
396
 </p>
396
 </p>
397
 </div>
397
 </div>
398
 </div>
398
 </div>
399
-<div id="outline-container-org71113c6" class="outline-2">
400
-<h2 id="org71113c6">IRC Server (ngirc)</h2>
401
-<div class="outline-text-2" id="text-org71113c6">
399
+<div id="outline-container-org4f18360" class="outline-2">
400
+<h2 id="org4f18360">IRC Server (ngirc)</h2>
401
+<div class="outline-text-2" id="text-org4f18360">
402
 <p>
402
 <p>
403
 Run your own IRC chat channel which can be secured with a password and accessible via an onion address. A bouncer is included so that you can receive messages sent while you were offline. Works with Hexchat and other popular clients.
403
 Run your own IRC chat channel which can be secured with a password and accessible via an onion address. A bouncer is included so that you can receive messages sent while you were offline. Works with Hexchat and other popular clients.
404
 </p>
404
 </p>
408
 </p>
408
 </p>
409
 </div>
409
 </div>
410
 </div>
410
 </div>
411
-<div id="outline-container-org9f28087" class="outline-2">
412
-<h2 id="org9f28087">Jitsi Meet</h2>
413
-<div class="outline-text-2" id="text-org9f28087">
411
+<div id="outline-container-orgc105f39" class="outline-2">
412
+<h2 id="orgc105f39">Jitsi Meet</h2>
413
+<div class="outline-text-2" id="text-orgc105f39">
414
 <p>
414
 <p>
415
 Experimental WebRTC video conferencing system, similar to Google Hangouts. This may not be fully functional, but is hoped to be in the near future.
415
 Experimental WebRTC video conferencing system, similar to Google Hangouts. This may not be fully functional, but is hoped to be in the near future.
416
 </p>
416
 </p>
417
 </div>
417
 </div>
418
 </div>
418
 </div>
419
 
419
 
420
-<div id="outline-container-orgbad5922" class="outline-2">
421
-<h2 id="orgbad5922">KanBoard</h2>
422
-<div class="outline-text-2" id="text-orgbad5922">
420
+<div id="outline-container-org10fbc88" class="outline-2">
421
+<h2 id="org10fbc88">KanBoard</h2>
422
+<div class="outline-text-2" id="text-org10fbc88">
423
 <p>
423
 <p>
424
 A simple kanban system for managing projects or TODO lists.
424
 A simple kanban system for managing projects or TODO lists.
425
 </p>
425
 </p>
429
 </p>
429
 </p>
430
 </div>
430
 </div>
431
 </div>
431
 </div>
432
-<div id="outline-container-org6529912" class="outline-2">
433
-<h2 id="org6529912">Koel</h2>
434
-<div class="outline-text-2" id="text-org6529912">
432
+<div id="outline-container-orgb3097e7" class="outline-2">
433
+<h2 id="orgb3097e7">Key Server</h2>
434
+<div class="outline-text-2" id="text-orgb3097e7">
435
+<p>
436
+An OpenPGP key server for storing and retrieving GPG public keys.
437
+</p>
438
+
439
+<p>
440
+<a href="./app_keyserver.html">How to use it</a>
441
+</p>
442
+</div>
443
+</div>
444
+<div id="outline-container-orga3542ee" class="outline-2">
445
+<h2 id="orga3542ee">Koel</h2>
446
+<div class="outline-text-2" id="text-orga3542ee">
435
 <p>
447
 <p>
436
 Access your music collection from any internet connected device.
448
 Access your music collection from any internet connected device.
437
 </p>
449
 </p>
441
 </p>
453
 </p>
442
 </div>
454
 </div>
443
 </div>
455
 </div>
444
-<div id="outline-container-orgc0eae1a" class="outline-2">
445
-<h2 id="orgc0eae1a">Lychee</h2>
446
-<div class="outline-text-2" id="text-orgc0eae1a">
456
+<div id="outline-container-orga662c8f" class="outline-2">
457
+<h2 id="orga662c8f">Lychee</h2>
458
+<div class="outline-text-2" id="text-orga662c8f">
447
 <p>
459
 <p>
448
 Make your photo albums available on the web.
460
 Make your photo albums available on the web.
449
 </p>
461
 </p>
453
 </p>
465
 </p>
454
 </div>
466
 </div>
455
 </div>
467
 </div>
456
-<div id="outline-container-orga4bfc9d" class="outline-2">
457
-<h2 id="orga4bfc9d">Mailpile</h2>
458
-<div class="outline-text-2" id="text-orga4bfc9d">
468
+<div id="outline-container-orgccf23ee" class="outline-2">
469
+<h2 id="orgccf23ee">Mailpile</h2>
470
+<div class="outline-text-2" id="text-orgccf23ee">
459
 <p>
471
 <p>
460
 Modern email client which supports GPG encryption.
472
 Modern email client which supports GPG encryption.
461
 </p>
473
 </p>
465
 </p>
477
 </p>
466
 </div>
478
 </div>
467
 </div>
479
 </div>
468
-<div id="outline-container-org672b48e" class="outline-2">
469
-<h2 id="org672b48e">Matrix</h2>
470
-<div class="outline-text-2" id="text-org672b48e">
480
+<div id="outline-container-orgdee374a" class="outline-2">
481
+<h2 id="orgdee374a">Matrix</h2>
482
+<div class="outline-text-2" id="text-orgdee374a">
471
 <p>
483
 <p>
472
 Multi-user chat with some security and moderation controls.
484
 Multi-user chat with some security and moderation controls.
473
 </p>
485
 </p>
477
 </p>
489
 </p>
478
 </div>
490
 </div>
479
 </div>
491
 </div>
480
-<div id="outline-container-orgce218ca" class="outline-2">
481
-<h2 id="orgce218ca">Mediagoblin</h2>
482
-<div class="outline-text-2" id="text-orgce218ca">
492
+<div id="outline-container-org7faaca0" class="outline-2">
493
+<h2 id="org7faaca0">Mediagoblin</h2>
494
+<div class="outline-text-2" id="text-org7faaca0">
483
 <p>
495
 <p>
484
 Publicly host video and audio files so that you don't need to use YouTube/Vimeo/etc.
496
 Publicly host video and audio files so that you don't need to use YouTube/Vimeo/etc.
485
 </p>
497
 </p>
489
 </p>
501
 </p>
490
 </div>
502
 </div>
491
 </div>
503
 </div>
492
-<div id="outline-container-orgb224245" class="outline-2">
493
-<h2 id="orgb224245">Mumble</h2>
494
-<div class="outline-text-2" id="text-orgb224245">
504
+<div id="outline-container-orgfa87291" class="outline-2">
505
+<h2 id="orgfa87291">Mumble</h2>
506
+<div class="outline-text-2" id="text-orgfa87291">
495
 <p>
507
 <p>
496
 The popular VoIP and text chat system. Say goodbye to old-fashioned telephony conferences with silly dial codes. Also works well on mobile.
508
 The popular VoIP and text chat system. Say goodbye to old-fashioned telephony conferences with silly dial codes. Also works well on mobile.
497
 </p>
509
 </p>
501
 </p>
513
 </p>
502
 </div>
514
 </div>
503
 </div>
515
 </div>
504
-<div id="outline-container-org2786fbb" class="outline-2">
505
-<h2 id="org2786fbb">NextCloud</h2>
506
-<div class="outline-text-2" id="text-org2786fbb">
516
+<div id="outline-container-org88bc444" class="outline-2">
517
+<h2 id="org88bc444">NextCloud</h2>
518
+<div class="outline-text-2" id="text-org88bc444">
507
 <p>
519
 <p>
508
 Store files on your server and sync them with laptops or mobile devices. Includes many plugins including videoconferencing and collaborative document editing.
520
 Store files on your server and sync them with laptops or mobile devices. Includes many plugins including videoconferencing and collaborative document editing.
509
 </p>
521
 </p>
513
 </p>
525
 </p>
514
 </div>
526
 </div>
515
 </div>
527
 </div>
516
-<div id="outline-container-orgaad15be" class="outline-2">
517
-<h2 id="orgaad15be">PI-Hole</h2>
518
-<div class="outline-text-2" id="text-orgaad15be">
528
+<div id="outline-container-orgd909087" class="outline-2">
529
+<h2 id="orgd909087">PI-Hole</h2>
530
+<div class="outline-text-2" id="text-orgd909087">
519
 <p>
531
 <p>
520
 The black hole for web adverts. Block adverts at the domain name level within your local network. It can significantly reduce bandwidth, speed up page load times and protect your systems from being tracked by spyware.
532
 The black hole for web adverts. Block adverts at the domain name level within your local network. It can significantly reduce bandwidth, speed up page load times and protect your systems from being tracked by spyware.
521
 </p>
533
 </p>
525
 </p>
537
 </p>
526
 </div>
538
 </div>
527
 </div>
539
 </div>
528
-<div id="outline-container-org0cb789f" class="outline-2">
529
-<h2 id="org0cb789f">PostActiv</h2>
530
-<div class="outline-text-2" id="text-org0cb789f">
540
+<div id="outline-container-org54cc393" class="outline-2">
541
+<h2 id="org54cc393">PostActiv</h2>
542
+<div class="outline-text-2" id="text-org54cc393">
531
 <p>
543
 <p>
532
 An alternative federated social networking system compatible with GNU Social. It includes some optimisations and fixes currently not available within the main GNU Social project.
544
 An alternative federated social networking system compatible with GNU Social. It includes some optimisations and fixes currently not available within the main GNU Social project.
533
 </p>
545
 </p>
537
 </p>
549
 </p>
538
 </div>
550
 </div>
539
 </div>
551
 </div>
540
-<div id="outline-container-org6b2db26" class="outline-2">
541
-<h2 id="org6b2db26">Profanity</h2>
542
-<div class="outline-text-2" id="text-org6b2db26">
552
+<div id="outline-container-orgbf4385b" class="outline-2">
553
+<h2 id="orgbf4385b">Profanity</h2>
554
+<div class="outline-text-2" id="text-orgbf4385b">
543
 <p>
555
 <p>
544
 A shell based XMPP client which you can run on the Freedombone server via ssh.
556
 A shell based XMPP client which you can run on the Freedombone server via ssh.
545
 </p>
557
 </p>
549
 </p>
561
 </p>
550
 </div>
562
 </div>
551
 </div>
563
 </div>
552
-<div id="outline-container-org4dea572" class="outline-2">
553
-<h2 id="org4dea572">Riot Web</h2>
554
-<div class="outline-text-2" id="text-org4dea572">
564
+<div id="outline-container-orgda318c9" class="outline-2">
565
+<h2 id="orgda318c9">Riot Web</h2>
566
+<div class="outline-text-2" id="text-orgda318c9">
555
 <p>
567
 <p>
556
 A browser based user interface for the Matrix federated communications system, including WebRTC audio and video chat.
568
 A browser based user interface for the Matrix federated communications system, including WebRTC audio and video chat.
557
 </p>
569
 </p>
561
 </p>
573
 </p>
562
 </div>
574
 </div>
563
 </div>
575
 </div>
564
-<div id="outline-container-org7e88433" class="outline-2">
565
-<h2 id="org7e88433">SearX</h2>
566
-<div class="outline-text-2" id="text-org7e88433">
576
+<div id="outline-container-org99449d0" class="outline-2">
577
+<h2 id="org99449d0">SearX</h2>
578
+<div class="outline-text-2" id="text-org99449d0">
567
 <p>
579
 <p>
568
 A metasearch engine for customised and private web searches.
580
 A metasearch engine for customised and private web searches.
569
 </p>
581
 </p>
573
 </p>
585
 </p>
574
 </div>
586
 </div>
575
 </div>
587
 </div>
576
-<div id="outline-container-orgcfc1af4" class="outline-2">
577
-<h2 id="orgcfc1af4">tt-rss</h2>
578
-<div class="outline-text-2" id="text-orgcfc1af4">
588
+<div id="outline-container-org761a652" class="outline-2">
589
+<h2 id="org761a652">tt-rss</h2>
590
+<div class="outline-text-2" id="text-org761a652">
579
 <p>
591
 <p>
580
 Private RSS reader. Pulls in RSS/Atom feeds via Tor and is only accessible via an onion address. Have "<i>the right to read</i>" without the Surveillance State knowing what you're reading. Also available with a user interface suitable for viewing on mobile devices via a browser such as OrFox.
592
 Private RSS reader. Pulls in RSS/Atom feeds via Tor and is only accessible via an onion address. Have "<i>the right to read</i>" without the Surveillance State knowing what you're reading. Also available with a user interface suitable for viewing on mobile devices via a browser such as OrFox.
581
 </p>
593
 </p>
585
 </p>
597
 </p>
586
 </div>
598
 </div>
587
 </div>
599
 </div>
588
-<div id="outline-container-org526d1e5" class="outline-2">
589
-<h2 id="org526d1e5">Syncthing</h2>
590
-<div class="outline-text-2" id="text-org526d1e5">
600
+<div id="outline-container-orga6e23d7" class="outline-2">
601
+<h2 id="orga6e23d7">Syncthing</h2>
602
+<div class="outline-text-2" id="text-orga6e23d7">
591
 <p>
603
 <p>
592
 Possibly the best way to synchronise files across all of your devices. Once it has been set up it "just works" with no user intervention needed.
604
 Possibly the best way to synchronise files across all of your devices. Once it has been set up it "just works" with no user intervention needed.
593
 </p>
605
 </p>
597
 </p>
609
 </p>
598
 </div>
610
 </div>
599
 </div>
611
 </div>
600
-<div id="outline-container-org43bcb4f" class="outline-2">
601
-<h2 id="org43bcb4f">Tahoe-LAFS</h2>
602
-<div class="outline-text-2" id="text-org43bcb4f">
612
+<div id="outline-container-org643b86b" class="outline-2">
613
+<h2 id="org643b86b">Tahoe-LAFS</h2>
614
+<div class="outline-text-2" id="text-org643b86b">
603
 <p>
615
 <p>
604
 Robust and encrypted storage of files on one or more server.
616
 Robust and encrypted storage of files on one or more server.
605
 </p>
617
 </p>
609
 </p>
621
 </p>
610
 </div>
622
 </div>
611
 </div>
623
 </div>
612
-<div id="outline-container-org29d522e" class="outline-2">
613
-<h2 id="org29d522e">Tox</h2>
614
-<div class="outline-text-2" id="text-org29d522e">
624
+<div id="outline-container-org8eb9d12" class="outline-2">
625
+<h2 id="org8eb9d12">Tox</h2>
626
+<div class="outline-text-2" id="text-org8eb9d12">
615
 <p>
627
 <p>
616
 Client and bootstrap node for the Tox chat/VoIP system.
628
 Client and bootstrap node for the Tox chat/VoIP system.
617
 </p>
629
 </p>
621
 </p>
633
 </p>
622
 </div>
634
 </div>
623
 </div>
635
 </div>
624
-<div id="outline-container-org71eba9a" class="outline-2">
625
-<h2 id="org71eba9a">Turtl</h2>
626
-<div class="outline-text-2" id="text-org71eba9a">
636
+<div id="outline-container-org5a0e4e5" class="outline-2">
637
+<h2 id="org5a0e4e5">Turtl</h2>
638
+<div class="outline-text-2" id="text-org5a0e4e5">
627
 <p>
639
 <p>
628
 A system for privately creating and sharing notes and images, similar to Evernote but without the spying.
640
 A system for privately creating and sharing notes and images, similar to Evernote but without the spying.
629
 </p>
641
 </p>
633
 </p>
645
 </p>
634
 </div>
646
 </div>
635
 </div>
647
 </div>
636
-<div id="outline-container-org95cabfd" class="outline-2">
637
-<h2 id="org95cabfd">Vim</h2>
638
-<div class="outline-text-2" id="text-org95cabfd">
648
+<div id="outline-container-orgdeeab5b" class="outline-2">
649
+<h2 id="orgdeeab5b">Vim</h2>
650
+<div class="outline-text-2" id="text-orgdeeab5b">
639
 <p>
651
 <p>
640
 If you use the Mutt client to read your email then this will set it up to use vim for composing new mail.
652
 If you use the Mutt client to read your email then this will set it up to use vim for composing new mail.
641
 </p>
653
 </p>
642
 </div>
654
 </div>
643
 </div>
655
 </div>
644
 
656
 
645
-<div id="outline-container-org07897b8" class="outline-2">
646
-<h2 id="org07897b8">XMPP</h2>
647
-<div class="outline-text-2" id="text-org07897b8">
657
+<div id="outline-container-orgdbd802c" class="outline-2">
658
+<h2 id="orgdbd802c">XMPP</h2>
659
+<div class="outline-text-2" id="text-orgdbd802c">
648
 <p>
660
 <p>
649
 Chat server which can be used together with client such as Gajim or Conversations to provide end-to-end content security and also onion routed metadata security. Includes advanced features such as <i>client state notification</i> to save battery power on your mobile devices, support for seamless roaming between networks and <i>message carbons</i> so that you can receive the same messages while being simultaneously logged in to your account on more than one device.
661
 Chat server which can be used together with client such as Gajim or Conversations to provide end-to-end content security and also onion routed metadata security. Includes advanced features such as <i>client state notification</i> to save battery power on your mobile devices, support for seamless roaming between networks and <i>message carbons</i> so that you can receive the same messages while being simultaneously logged in to your account on more than one device.
650
 </p>
662
 </p>