import CA into Icecat
authorTanguy Le Carrour <tanguy@bioneland.org>
Tue, 10 Mar 2020 16:42:04 +0000 (17:42 +0100)
committerChristian Grothoff <christian@grothoff.org>
Tue, 10 Mar 2020 19:42:41 +0000 (20:42 +0100)
src/gns/gnunet-gns-proxy-setup-ca.in

index 602aadb2a610fec64fa6a8e2f6b98b032c9e0e6c..412e53f8d65ffbe037db4f65801fb87fe7992ee1 100644 (file)
@@ -224,6 +224,16 @@ importbrowsers()
                 certutil -A -n "GNS Proxy CA" -t CT,, -d "$f" < $GNSCERT
             fi
         done
+        for f in ~/.mozilla/icecat/*.*/
+        do
+            if [ -d $f ]; then
+                infomsg "Importing CA into Icecat at $f"
+                # delete old certificate (if any)
+                certutil -D -n "GNS Proxy CA" -d "$f" >/dev/null 2>/dev/null
+                # add new certificate
+                certutil -A -n "GNS Proxy CA" -t CT,, -d "$f" < $GNSCERT
+            fi
+        done
         # TODO: Error handling?
         if [ -d ~/.pki/nssdb/ ]; then
             statusmsg "Importing CA into Chrome at ~/.pki/nssdb/"