diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-07 07:35:04 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-07 07:35:04 +0100 |
commit | 4dbdf50628a42e77afeca4642baf5a0686f51aa9 (patch) | |
tree | fa10bda0e94003dd103a60e0a6221761f038b542 /bin | |
parent | c7014d2e290444771838cba47632c2897d1cabad (diff) | |
download | itzks-systems-4dbdf50628a42e77afeca4642baf5a0686f51aa9.tar.gz itzks-systems-4dbdf50628a42e77afeca4642baf5a0686f51aa9.tar.bz2 itzks-systems-4dbdf50628a42e77afeca4642baf5a0686f51aa9.zip |
bin/itzks-filter-whitelist-sslmitm-ca: Drop file, not needed anymore. Update d/copyright accordingly.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/itzks-filter-whitelist-sslmitm-ca | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/bin/itzks-filter-whitelist-sslmitm-ca b/bin/itzks-filter-whitelist-sslmitm-ca deleted file mode 100755 index 838947f..0000000 --- a/bin/itzks-filter-whitelist-sslmitm-ca +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -# Copyright (C) 2018 Mike Gabriel <mike.gabriel@das-netzwerkteam.de> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -if [ "$(hostname -s)" != "tjener" ]; then - echo "ERROR: Not on TJENER. Aborting..." - exit 1 -fi - -certificateFile="/etc/debian-edu/www/E2Guardian-ca.crt" -certificateName="DebianEduFilter" - -if [ ! -e "${certificateFile}" ]; then - echo "ERROR: no certificate file at ${certificateFile}. Aborting..." - exit 1 -fi - -# Debian Edu specific -if [ -e "$HOME/.mozilla/firefox/debian-edu.default" ]; then - certDir="$HOME/.mozilla/firefox/debian-edu.default" - if [ ! -e "$HOME/.mozilla/firefox/debian-edu.default/cert8.db" -a ! -e "$HOME/.mozilla/firefox/debian-edu.default/cert9.db" ]; then - logger -t "Mozilla CA Import" "Install '${certificateName}' in ${certDir} (cert8.db)" - certutil -A -n "${certificateName}" -t "TC,Cw,Tw" -i ${certificateFile} -d ${certDir} - fi -fi - -# Debian stretch, Firefox until v57 -for certDB in $(find ~/.mozilla* ~/.thunderbird -name "cert8.db" 2>/dev/null) -do - certDir=$(dirname ${certDB}) - logger -t "Mozilla CA Import" "Install '${certificateName}' in ${certDir} (cert8.db)" - certutil -A -n "${certificateName}" -t "TC,Cw,Tw" -i ${certificateFile} -d ${certDir} -done - -# Debian buster, Firefox v58 and higher -for certDB in $(find ~/.mozilla* ~/.thunderbird -name "cert9.db" 2>/dev/null) -do - certDir=$(dirname ${certDB}) - logger -t "Mozilla CA Import" "Install '${certificateName}' in ${certDir} (cert9.db)" - certutil -A -d dbm:${certDir} -t "CT,CT," -n ${certificateName} -i ${certificateFile} -done - -certDir="$HOMEDIR/.pki/nssdb/" -certutil -A -d sql:${certDir} -t "CT,CT," -n ${certificateName} -i ${certificateFile} |