followup #5817
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Tue, 23 Jul 2019 21:57:48 +0000 (23:57 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Tue, 23 Jul 2019 21:57:48 +0000 (23:57 +0200)
po/POTFILES.in
src/gns/gnunet-gns-proxy-setup-ca.in
src/transport/gnunet-transport-certificate-creation.in

index 3e36eef0723270b8f55557751a26b0822c8fc55d..f363cc68a6f61a2b7f7993329eed99c67fe49d99 100644 (file)
@@ -405,7 +405,6 @@ src/transport/gnunet-service-transport_manipulation.c
 src/transport/gnunet-service-transport_neighbours.c
 src/transport/gnunet-service-transport_plugins.c
 src/transport/gnunet-service-transport_validation.c
-src/transport/gnunet-transport-certificate-creation.c
 src/transport/gnunet-transport-profiler.c
 src/transport/gnunet-transport-wlan-receiver.c
 src/transport/gnunet-transport-wlan-sender.c
index 57d1a9f042fe13cba46998e61fdff096b61dbd0d..885fc069a9439265002e1f218349ecc260b43800 100644 (file)
@@ -145,7 +145,7 @@ generate_ca()
         warningmsg "'gnutls-certtool' or 'certtool' command not found. Trying openssl."
         if test -z "`openssl version`" > /dev/null
         then
-          $OPENSSL=1
+          OPENSSL=1
         else
           warningmsg "Install either gnutls certtool or openssl for certificate generation!"
           infomsg    "Cleaning up."
index 9b8a23594ea511e85edb5385090fd111ec253608..1c04089a421ace2aea1986567280abbede2cb6dd 100644 (file)
@@ -107,13 +107,12 @@ generate_cert_key()
     OPENSSL=0
     if test -z "`gnutls-certtool --version`" > /dev/null
     then
-      warningmsg "'gnutls-certtool' or 'certtool' command not found. Trying openssl."
       if test -z "`openssl version`" > /dev/null
       then
-        $OPENSSL=1
-      else
         warningmsg "Install either gnutls certtool or openssl for certificate generation!"
         exit 1
+      else
+        OPENSSL=1
       fi
       CERTTOOL="openssl"
     else
@@ -124,7 +123,7 @@ generate_cert_key()
     if test 1 -eq $OPENSSL
     then
       $CERTTOOL genrsa -out $KEYFILE 1024
-      $CERTTOOL req -batch -days 365 -out $CERTFILE, -new -x509 -key $KEYFILE
+      $CERTTOOL req -batch -days 365 -out $CERTFILE -new -x509 -key $KEYFILE
     else
       $CERTTOOL --generate-privkey --outfile $KEYFILE 2>/dev/null
       $CERTTOOL --template $GNUTLS_CA_TEMPLATE --generate-self-signed --load-privkey $KEYFILE --outfile $CERTFILE 2>/dev/null