diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-27 09:19:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-27 09:19:50 +0000 |
commit | 41f7ff229cfc88a59047b934b44b6783b3f95040 (patch) | |
tree | a764a34caf899db62b3da76c5b329ae59da08327 | |
parent | 9fa4c3cadc4f9e1badf658233ea779adcc24c355 (diff) | |
download | gnunet-41f7ff229cfc88a59047b934b44b6783b3f95040.tar.gz gnunet-41f7ff229cfc88a59047b934b44b6783b3f95040.zip |
Added shell script to create https certificates
-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 | ||