From: Tanguy Le Carrour Date: Tue, 10 Mar 2020 16:42:04 +0000 (+0100) Subject: import CA into Icecat X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d5af046481ce1d5a0eeb0b4cb8496b6a2c9f22b;p=oweals%2Fgnunet.git import CA into Icecat --- diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in index 602aadb2a..412e53f8d 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca.in +++ b/src/gns/gnunet-gns-proxy-setup-ca.in @@ -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/"