aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/transport/gnunet-transport-certificate-creation12
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
6rm -f $1 $2
7
8# Create RSA Private Key
9openssl genrsa -out $1 1024 > /dev/null
10# Create a self-signed certificate in batch mode using rsa key
11openssl req -batch -days 365 -out $2 -new -x509 -key $1 > /dev/null
12chmod 0400 $1 $2 \ No newline at end of file