#!/bin/bash
|
|
INSTALLDIR="/usr/local/ComarchCryptoProvider"
|
|
echo "Deleting self-signed certificates..."
|
[ -f "${INSTALLDIR}/certs/CCP-key-server.pem" ] \
|
&& rm -f "${INSTALLDIR}/certs/CCP-key-server.pem"
|
[ -f "${INSTALLDIR}/certs/CCP-cert-server.pem" ] \
|
&& rm -f "${INSTALLDIR}/certs/CCP-cert-server.pem"
|
|
echo "Revoke trust for self-signed certificate..."
|
[ -f "/usr/local/share/ca-certificates/CCP-cert-server.crt" ] \
|
&& rm -f "/usr/local/share/ca-certificates/CCP-cert-server.crt"
|
|
dpkg-trigger update-ca-certificates-fresh
|
|
#DEBHELPER#
|