>From 8de3d70f96c460377895bd9012fb1f0247854f43 Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour Date: Tue, 10 Mar 2020 17:42:04 +0100 Subject: [PATCH] import CA into Icecat --- src/gns/gnunet-gns-proxy-setup-ca.in | 10 ++++++++++ 1 file changed, 10 insertions(+) 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/" -- 2.25.1