From 4dbdf50628a42e77afeca4642baf5a0686f51aa9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 7 Jan 2022 07:35:04 +0100 Subject: bin/itzks-filter-whitelist-sslmitm-ca: Drop file, not needed anymore. Update d/copyright accordingly. --- bin/itzks-filter-whitelist-sslmitm-ca | 58 ----------------------------------- debian/copyright | 1 - 2 files changed, 59 deletions(-) delete mode 100755 bin/itzks-filter-whitelist-sslmitm-ca 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 -# -# 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} diff --git a/debian/copyright b/debian/copyright index 17f3875..e957a23 100644 --- a/debian/copyright +++ b/debian/copyright @@ -44,7 +44,6 @@ Files: bin/smarttech-SMARTBoardService bin/passwd bin/itzks-hosts bin/itzks-goodbye-user-session - bin/itzks-filter-whitelist-sslmitm-ca debian/* etc/X11/Xsession.d/98itzks-systems etc/.java/deployment/deployment.config -- cgit v1.2.3