Added shell script to create https certificates
[oweals/gnunet.git] / src / transport / gnunet-transport-certificate-creation
1 #!/bin/bash
2
3 # GNUnet TLS certificate shell scricpt
4 # Creates a TSL certificate to use with HTTPS transport plugin
5
6 rm -f $1 $2
7
8 # Create RSA Private Key
9 openssl genrsa -out $1 1024 > /dev/null
10 # Create a self-signed certificate in batch mode using rsa key
11 openssl req -batch -days 365 -out $2 -new -x509 -key $1 > /dev/null
12 chmod 0400 $1 $2