summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2022-06-10 15:08:20 +0200
committerJulius Bünger <buenger@mytum.de>2022-06-10 15:08:20 +0200
commite12f2fba71c116b754c19c2593a9c9bc0615f598 (patch)
tree054c25a5c2fbfb9ec1ab9e45b9208a463b6a06bd
parentff7753975e287cb60df51b6ce6a51241c8f4ed59 (diff)
-TRANSPORT(fix): consider certtooldev/ch3/fix-certtool
Previously this script only checked for `gnutls-certtool` and `openssl`. Now it checks for `certtool` as well.
-rw-r--r--src/transport/gnunet-transport-certificate-creation.in15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/transport/gnunet-transport-certificate-creation.in b/src/transport/gnunet-transport-certificate-creation.in
index 8348dd1b7..454f05a5d 100644
--- a/src/transport/gnunet-transport-certificate-creation.in
+++ b/src/transport/gnunet-transport-certificate-creation.in
@@ -107,14 +107,19 @@ generate_cert_key()
OPENSSL=0
if test -z "`gnutls-certtool --version`" > /dev/null
then
- if test -z "`openssl version`" > /dev/null
+ if test -z "`certtool --version`" > /dev/null
then
- warningmsg "Install either gnutls certtool or openssl for certificate generation!"
- exit 1
+ if test -z "`openssl version`" > /dev/null
+ then
+ warningmsg "Install either gnutls certtool or openssl for certificate generation!"
+ exit 1
+ else
+ OPENSSL=1
+ fi
+ CERTTOOL="openssl"
else
- OPENSSL=1
+ CERTTOOL="certtool"
fi
- CERTTOOL="openssl"
else
CERTTOOL="gnutls-certtool"
fi