Importieren der CA in Firefox: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 +
=Install=
 +
*curl https://xinux.net/images/c/c2/Firefox-ca.sh -o firefox-ca.sh
 +
*chmod +x firefox-ca.sh
 +
*firefox-ca.sh ca.crt
 +
=Datei=
 
[[Datei:Firefox-ca.sh]]
 
[[Datei:Firefox-ca.sh]]
 
 
<pre>
 
#!/bin/bash
 
 
### (e.g. Firefox, Thunderbird, Chromium)
 
### Mozilla uses cert8, Chromium and Chrome use cert9
 
 
###
 
### Requirement: apt install libnss3-tools
 
###
 
 
 
###
 
### CA file to install (customize!)
 
###
 
 
certfile="$1"
 
certname="My Root CA"
 
 
 
###
 
### For cert8 (legacy - DBM)
 
###
 
 
for certDB in $(find ~/ -name "cert8.db")
 
do
 
    certdir=$(dirname ${certDB});
 
    certutil -A -n "${certname}" -t "TCu,Cu,Tu" -i ${certfile} -d dbm:${certdir}
 
done
 
 
 
###
 
### For cert9 (SQL)
 
###
 
 
for certDB in $(find ~/ -name "cert9.db")
 
do
 
    certdir=$(dirname ${certDB});
 
    certutil -A -n "${certname}" -t "TCu,Cu,Tu" -i ${certfile} -d sql:${certdir}
 
done
 
</pre>
 

Version vom 2. November 2022, 14:06 Uhr

Install

Datei

Datei:Firefox-ca.sh