From 9d5af046481ce1d5a0eeb0b4cb8496b6a2c9f22b Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour Date: Tue, 10 Mar 2020 17:42:04 +0100 Subject: import CA into Icecat --- src/gns/gnunet-gns-proxy-setup-ca.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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/" -- cgit v1.2.3