commit cc6a424a821e44e8f524e6c03a3f7071575f0bb2
parent 302c3b6c9d1f338ead14f6317754a6a49d3f11dd
Author: Thordur Bjornsson <thorduri@secnorth.net>
Date: Sat, 16 Nov 2013 13:31:33 +0100
Introduce tools/
Currently only populated with a script to generate certificates.
Diffstat:
tools/generate_certificates.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/tools/generate_certificates.sh b/tools/generate_certificates.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+
+CERTDIR=cert
+
+rm -rf ${CERTDIR}
+mkdir -p ${CERTDIR}
+
+openssl genrsa -des3 -passout pass:pass 2048 > ${CERTDIR}/server.key
+openssl req -passin pass:pass -new -key ${CERTDIR}/server.key -x509 -days 356 -out ${CERTDIR}/server.crt << EOF
+IO
+Kore
+Kore
+Kore
+Kore
+Kore
+Kore
+EOF
+openssl rsa -in ${CERTDIR}/server.key -passin pass:pass -out ${CERTDIR}/server.key