Add generation script and config file
authorkristianf <devnull@localhost>
Fri, 1 Aug 2014 19:39:04 +0000 (21:39 +0200)
committerkristianf <devnull@localhost>
Fri, 1 Aug 2014 19:39:04 +0000 (21:39 +0200)
cronjob_generate.sh [new file with mode: 0644]
keysigningPartyList.php
ksp_conf [new file with mode: 0644]

diff --git a/cronjob_generate.sh b/cronjob_generate.sh
new file mode 100644 (file)
index 0000000..8c2b317
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+SKSPTH=/usr/bin
+cd /var/lib/sks
+pkill sks
+
+while [ "`pidof sks`" ]; do sleep 1; done # wait until SKS processes have exited
+
+rm -rf keydump
+$SKSPTH/sks dump 5000 keydump
+$SKSPTH/sks db&
+echo "SKS Dumped and restarted"
+cd keydump
+/usr/bin/gpg --homedir . --import *.pgp
+cp ../ksp_conf .
+/usr/bin/php -f /home/kristianf/keysigningpartylist/keysigningPartyList.php .
+mv key_party_list.html ../web/
+mv fpr.txt ../web/
index ac23607..1ea8e72 100644 (file)
@@ -198,13 +198,13 @@ EOF;
   $tmp .= "<p>Last updated: ".date("Y-m-d H:i")."<br/>"; 
   $tmp .= "Submission deadline: {$conf['submission_deadline']}<br/>";
   $tmp .= "Submission status: {$conf['submission_status']}<br/>";
-  $tmp .= "Coordinator: {$conf['coordinator']}</p>";
+  $tmp .= "Coordinator: {$conf['coordinator']} (Please direct any question to {$conf['coordinator_email']} using OpenPGP key: {$conf['coordinator_openpgp']})</p>";
   $tmp .= <<<EOF
 <h2>Here's what you have to do with this file:</h2>
 <p><ul><li>Before the KSP (while submission status is open):</li><ol>
 EOF;
        $port = ($conf['server_port'] != "11371") ? ":{$conf['server_port']}" : "";
-       $tmp .= "<li>Submit the key(s) you want signed using `gpg --keyserver hkp://{$conf['server']}{$port} --send-key &lt;fingerprint&gt;`</li>";
+       $tmp .= "<li>Submit the key(s) you want signed using `gpg --keyserver hkp://{$conf['server']}{$port} --send-key &lt;fingerprint&gt;` (Note: please ensure that your key is of a generally accepted format, e.g. some people will refuse to sign 1024 bit DSA keys as this does not satisfy certain security parameters)</li>";
        $tmp .= <<<EOF
        </ol></li><li>Before the KSP (after submission status is set to closed)<ol><li>Verify that the key-id and the fingerprint of your key(s) on this list match with your expectation.</li>
        <li>Print this UTF-8 encoded file to paper.</li>
@@ -248,7 +248,7 @@ function hashline_print($len = 256, $skiplen=8, $blockprline=3)
        <th>Key ID</th>
        <th>Owner (UID)</th>
        <th>Fingerprint</th>
-       <th>Size</th>
+       <th>Key length</th>
        <th>Type</th>
        <th>Creation date</th>
        <th>Key info matches?</th>
@@ -264,9 +264,9 @@ EOF;
        $tmp .= "<td>{$ks_obj->get_keyid()}</td>";
        $tmp .= "<td>{$ks_obj->get_uids()}</td>";
        $tmp .= "<td>{$ks_obj->get_fpr()}</td>";
-       $tmp .= "<td>{$ks_obj->get_keylength()}</td>";
-       $tmp .= "<td>{$ks_obj->get_keytype()}</td>";
-       $tmp .= "<td>{$ks_obj->get_creation_date()}</td>";
+       $tmp .= "<td style=\"text-align: center;\">{$ks_obj->get_keylength()}</td>";
+       $tmp .= "<td style=\"text-align: center;\">{$ks_obj->get_keytype()}</td>";
+       $tmp .= "<td style=\"text-align: center;\">{$ks_obj->get_creation_date()}</td>";
        $tmp .= "<td>&nbsp;</td>";
        $tmp .= "<td>&nbsp;</td>";
        $tmp .= "</tr>\n";
diff --git a/ksp_conf b/ksp_conf
new file mode 100644 (file)
index 0000000..b066ead
--- /dev/null
+++ b/ksp_conf
@@ -0,0 +1,9 @@
+title: NUUG Key Signing Party
+date: 2014-09-09
+coordinator: Kristian Fiskerstrand
+coordinator_email: kf@sumptuouscapital.com
+coordinator_openpgp: 0x0B7F8B60E3EDFAE3
+submission_status: open
+submission_deadline: 2014-09-05
+server: ksp.kfwebs.net
+server_port: 21371