# Install deps
sudo apt install libnss3-tools
# Get trust database location
db=$(find "$HOME/snap/firefox/common/.mozilla/firefox/" -name cert9.db -printf "%h")
# Add cert
certutil -A -n "$name" -t CT -i "$ca_cert" -d "$db"
# Delete cert
if certutil -L -d "$db" | grep ^fra-flugplan; then
certutil -D -n "fra-flugplan" -d "$db"
fi