From: Matthias Wachs Date: Tue, 27 Jul 2010 09:19:50 +0000 (+0000) Subject: Added shell script to create https certificates X-Git-Tag: initial-import-from-subversion-38251~20843 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41f7ff229cfc88a59047b934b44b6783b3f95040;p=oweals%2Fgnunet.git Added shell script to create https certificates --- diff --git a/src/transport/gnunet-transport-certificate-creation b/src/transport/gnunet-transport-certificate-creation new file mode 100755 index 000000000..294f54a3d --- /dev/null +++ b/src/transport/gnunet-transport-certificate-creation @@ -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