aboutsummaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-02 20:21:37 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-02 20:21:37 +0200
commit11c1c31584c80e2dfd4bfc4dae6a81ce3547573b (patch)
treed187460fc992789ce26326baf55e4bc4ddbc23b2 /setup.sh
Initial commit.
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100755
index 0000000..727e3ad
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+WWWUSER=www
+
+# Download jQuery.
+mkdir -p jquery
+wget -O jquery/jquery.js http://code.jquery.com/jquery-1.7.2.min.js
+
+# Generate the private key.
+openssl genpkey -algorithm rsa -out rsa2048.pem -pkeyopt rsa_keygen_bits:2048
+
+# Install the private key.
+mkdir -p /etc/mulkid
+mv rsa2048.pem /etc/mulkid/
+chmod go= /etc/mulkid/rsa2048.pem
+chown $WWWUSER /etc/mulkid/rsa2048.pem
+
+# Generate spec file.
+./generate_specfile.pl >browserid.json
+echo "Please put browserid.json where it will be served as"
+echo " https://<whatever>/.well-known/browserid"
+echo "with a content type of"
+echo " application/json"
+echo "."