diff options
author | Tanguy Le Carrour <tanguy@bioneland.org> | 2020-03-10 17:42:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-10 20:42:41 +0100 |
commit | 9d5af046481ce1d5a0eeb0b4cb8496b6a2c9f22b (patch) | |
tree | 7da1565c508a2301238927c425a7d397b7da4998 /src/gns/gnunet-gns-proxy-setup-ca.in | |
parent | a945c6f4aca10cd64e583f8d14b48b7e89697f4e (diff) | |
download | gnunet-9d5af046481ce1d5a0eeb0b4cb8496b6a2c9f22b.tar.gz gnunet-9d5af046481ce1d5a0eeb0b4cb8496b6a2c9f22b.zip |
import CA into Icecat
Diffstat (limited to 'src/gns/gnunet-gns-proxy-setup-ca.in')
-rw-r--r-- | src/gns/gnunet-gns-proxy-setup-ca.in | 10 |
1 files changed, 10 insertions, 0 deletions
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() | |||
224 | certutil -A -n "GNS Proxy CA" -t CT,, -d "$f" < $GNSCERT | 224 | certutil -A -n "GNS Proxy CA" -t CT,, -d "$f" < $GNSCERT |
225 | fi | 225 | fi |
226 | done | 226 | done |
227 | for f in ~/.mozilla/icecat/*.*/ | ||
228 | do | ||
229 | if [ -d $f ]; then | ||
230 | infomsg "Importing CA into Icecat at $f" | ||
231 | # delete old certificate (if any) | ||
232 | certutil -D -n "GNS Proxy CA" -d "$f" >/dev/null 2>/dev/null | ||
233 | # add new certificate | ||
234 | certutil -A -n "GNS Proxy CA" -t CT,, -d "$f" < $GNSCERT | ||
235 | fi | ||
236 | done | ||
227 | # TODO: Error handling? | 237 | # TODO: Error handling? |
228 | if [ -d ~/.pki/nssdb/ ]; then | 238 | if [ -d ~/.pki/nssdb/ ]; then |
229 | statusmsg "Importing CA into Chrome at ~/.pki/nssdb/" | 239 | statusmsg "Importing CA into Chrome at ~/.pki/nssdb/" |