Added shell script to create https certificates
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 27 Jul 2010 09:19:50 +0000 (09:19 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 27 Jul 2010 09:19:50 +0000 (09:19 +0000)
src/transport/gnunet-transport-certificate-creation [new file with mode: 0755]

diff --git a/src/transport/gnunet-transport-certificate-creation b/src/transport/gnunet-transport-certificate-creation
new file mode 100755 (executable)
index 0000000..294f54a
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# GNUnet TLS certificate shell scricpt
+# Creates a TSL certificate to use with HTTPS transport plugin
+
+rm -f $1 $2
+
+# Create RSA Private Key
+openssl genrsa -out $1 1024 > /dev/null
+# Create a self-signed certificate in batch mode using rsa key
+openssl req -batch -days 365 -out $2 -new -x509 -key $1 > /dev/null
+chmod 0400 $1 $2
\ No newline at end of file