DEB packaging of Comarch Crypto Provider from ePUAP
Jacek Kowalski
2017-07-12 11f0bfe0b2c55127c8914e8a15f8c7d879a9ccdb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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#