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# |