From: Christian Grothoff Date: Wed, 18 Apr 2018 14:23:03 +0000 (+0200) Subject: update script to properly test for certtool and to add key to all moz profiles X-Git-Tag: v0.11.0pre66~94^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1008db2d5e9338adb08229167a4882e0a4b73f30;p=oweals%2Fgnunet.git update script to properly test for certtool and to add key to all moz profiles --- diff --git a/src/gns/gnunet-gns-proxy-setup-ca b/src/gns/gnunet-gns-proxy-setup-ca index 692cca974..72d478a50 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca +++ b/src/gns/gnunet-gns-proxy-setup-ca @@ -2,9 +2,9 @@ # This shell script will generate an X509 certificate for your gnunet-gns-proxy # and install it (for both GNUnet and your browser). # -if ! which certtool > /dev/null +if ! which certutil > /dev/null then - echo "'certtool' command not found. Please install it." + echo "'certutil' command not found. Please install it." exit 1 fi @@ -41,10 +41,10 @@ echo "Making private key available to gnunet-gns-proxy" cat $GNSCERT $GNSCANO > $GNS_CA_CERT_PEM echo "Importing CA into browsers" -for f in ~/.mozilla/firefox/*.default/ +for f in ~/.mozilla/firefox/*.*/ do if [ -d $f ]; then - echo "Importing CA info Firefox at $f/" + echo "Importing CA info Firefox at $f" # delete old certificate (if any) certutil -D -n "GNS Proxy CA" -d "$f" >/dev/null 2>/dev/null # add new certificate