DEB packaging of Comarch Crypto Provider from ePUAP
Jacek Kowalski
2017-07-12 11f0bfe0b2c55127c8914e8a15f8c7d879a9ccdb
commit | author | age
11f0bf 1 #!/bin/bash
JK 2
3 INSTALLDIR="/usr/local/ComarchCryptoProvider"
4
5 echo "Deleting self-signed certificates..."
6 [ -f "${INSTALLDIR}/certs/CCP-key-server.pem" ] \
7     && rm -f "${INSTALLDIR}/certs/CCP-key-server.pem"
8 [ -f "${INSTALLDIR}/certs/CCP-cert-server.pem" ] \
9     && rm -f "${INSTALLDIR}/certs/CCP-cert-server.pem"
10
11 echo "Revoke trust for self-signed certificate..."
12 [ -f "/usr/local/share/ca-certificates/CCP-cert-server.crt" ] \
13     && rm -f "/usr/local/share/ca-certificates/CCP-cert-server.crt"
14
15 dpkg-trigger update-ca-certificates-fresh
16
17 #DEBHELPER#