diff options
-rwxr-xr-x | src/transport/gnunet-transport-certificate-creation | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
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 \ No newline at end of file | ||