aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-18 16:23:03 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-18 16:25:41 +0200
commit1008db2d5e9338adb08229167a4882e0a4b73f30 (patch)
treeca6bcb79924be1b701e6507487e20af2af086a6d /src/gns
parent3f1ddc993a92cd2d6d47cd7c480a01bb27247df5 (diff)
downloadgnunet-1008db2d5e9338adb08229167a4882e0a4b73f30.tar.gz
gnunet-1008db2d5e9338adb08229167a4882e0a4b73f30.zip
update script to properly test for certtool and to add key to all moz profiles
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca8
1 files changed, 4 insertions, 4 deletions
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 @@
2# This shell script will generate an X509 certificate for your gnunet-gns-proxy 2# This shell script will generate an X509 certificate for your gnunet-gns-proxy
3# and install it (for both GNUnet and your browser). 3# and install it (for both GNUnet and your browser).
4# 4#
5if ! which certtool > /dev/null 5if ! which certutil > /dev/null
6then 6then
7 echo "'certtool' command not found. Please install it." 7 echo "'certutil' command not found. Please install it."
8 exit 1 8 exit 1
9fi 9fi
10 10
@@ -41,10 +41,10 @@ echo "Making private key available to gnunet-gns-proxy"
41cat $GNSCERT $GNSCANO > $GNS_CA_CERT_PEM 41cat $GNSCERT $GNSCANO > $GNS_CA_CERT_PEM
42 42
43echo "Importing CA into browsers" 43echo "Importing CA into browsers"
44for f in ~/.mozilla/firefox/*.default/ 44for f in ~/.mozilla/firefox/*.*/
45do 45do
46 if [ -d $f ]; then 46 if [ -d $f ]; then
47 echo "Importing CA info Firefox at $f/" 47 echo "Importing CA info Firefox at $f"
48# delete old certificate (if any) 48# delete old certificate (if any)
49 certutil -D -n "GNS Proxy CA" -d "$f" >/dev/null 2>/dev/null 49 certutil -D -n "GNS Proxy CA" -d "$f" >/dev/null 2>/dev/null
50# add new certificate 50# add new certificate