diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-18 16:23:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-18 16:25:41 +0200 |
commit | 1008db2d5e9338adb08229167a4882e0a4b73f30 (patch) | |
tree | ca6bcb79924be1b701e6507487e20af2af086a6d /src/gns | |
parent | 3f1ddc993a92cd2d6d47cd7c480a01bb27247df5 (diff) | |
download | gnunet-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-ca | 8 |
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 | # |
5 | if ! which certtool > /dev/null | 5 | if ! which certutil > /dev/null |
6 | then | 6 | then |
7 | echo "'certtool' command not found. Please install it." | 7 | echo "'certutil' command not found. Please install it." |
8 | exit 1 | 8 | exit 1 |
9 | fi | 9 | fi |
10 | 10 | ||
@@ -41,10 +41,10 @@ echo "Making private key available to gnunet-gns-proxy" | |||
41 | cat $GNSCERT $GNSCANO > $GNS_CA_CERT_PEM | 41 | cat $GNSCERT $GNSCANO > $GNS_CA_CERT_PEM |
42 | 42 | ||
43 | echo "Importing CA into browsers" | 43 | echo "Importing CA into browsers" |
44 | for f in ~/.mozilla/firefox/*.default/ | 44 | for f in ~/.mozilla/firefox/*.*/ |
45 | do | 45 | do |
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 |