[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12367 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12367 - gnunet/src/transport |
Date: |
Wed, 28 Jul 2010 09:19:51 +0200 |
Author: wachs
Date: 2010-07-28 09:19:51 +0200 (Wed, 28 Jul 2010)
New Revision: 12367
Modified:
gnunet/src/transport/gnunet-transport-certificate-creation
Log:
Modified: gnunet/src/transport/gnunet-transport-certificate-creation
===================================================================
--- gnunet/src/transport/gnunet-transport-certificate-creation 2010-07-28
06:43:17 UTC (rev 12366)
+++ gnunet/src/transport/gnunet-transport-certificate-creation 2010-07-28
07:19:51 UTC (rev 12367)
@@ -3,10 +3,25 @@
# GNUnet TLS certificate shell scricpt
# Creates a TSL certificate to use with HTTPS transport plugin
+if [ $# -ne 2 ]; then
+ exit 1
+fi
+
rm -f $1 $2
# Create RSA Private Key
-openssl genrsa -out $1 1024 > /dev/null
+openssl genrsa -out $1 1024 2> /dev/null
+if [ $? -ne 0 ]; then
+ rm -f $1 $2
+ exit 1
+fi
# 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
+openssl req -batch -days 365 -out $2 -new -x509 -key $1 2> /dev/null
+if [ $? -ne 0 ]; then
+ rm -f $1 $2
+ exit 1
+fi
+
+chmod 0400 $1 $2
+
+exit 0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12367 - gnunet/src/transport,
gnunet <=