Remove database on reinstall
This commit is contained in:
parent
23eb5fac45
commit
9089bd1f36
|
@ -5684,7 +5684,7 @@ function configure_imap_client_certs {
|
||||||
fi
|
fi
|
||||||
# make a CA cert
|
# make a CA cert
|
||||||
if [ ! -f /etc/ssl/private/dovecot-ca.key ]; then
|
if [ ! -f /etc/ssl/private/dovecot-ca.key ]; then
|
||||||
freedombone-addcert -h dovecot-ca --ca
|
freedombone-addcert -h dovecot-ca --ca
|
||||||
fi
|
fi
|
||||||
# CA configuration
|
# CA configuration
|
||||||
echo '[ ca ]' > /etc/ssl/dovecot-ca.cnf
|
echo '[ ca ]' > /etc/ssl/dovecot-ca.cnf
|
||||||
|
@ -5720,6 +5720,12 @@ function configure_imap_client_certs {
|
||||||
echo 'authorityKeyIdentifier = keyid:always' >> /etc/ssl/dovecot-ca.cnf
|
echo 'authorityKeyIdentifier = keyid:always' >> /etc/ssl/dovecot-ca.cnf
|
||||||
echo 'keyUsage = digitalSignature,keyEncipherment' >> /etc/ssl/dovecot-ca.cnf
|
echo 'keyUsage = digitalSignature,keyEncipherment' >> /etc/ssl/dovecot-ca.cnf
|
||||||
echo 'extendedKeyUsage = clientAuth' >> /etc/ssl/dovecot-ca.cnf
|
echo 'extendedKeyUsage = clientAuth' >> /etc/ssl/dovecot-ca.cnf
|
||||||
|
if [ -f /etc/ssl/ssldb ]; then
|
||||||
|
rm /etc/ssl/ssldb
|
||||||
|
fi
|
||||||
|
if [ -f /etc/ssl/sslserial ]; then
|
||||||
|
rm /etc/ssl/sslserial
|
||||||
|
fi
|
||||||
touch /etc/ssl/ssldb
|
touch /etc/ssl/ssldb
|
||||||
echo 0001 > /etc/ssl/sslserial
|
echo 0001 > /etc/ssl/sslserial
|
||||||
#freedombone-clientcert -u $MY_USERNAME
|
#freedombone-clientcert -u $MY_USERNAME
|
||||||
|
|
Loading…
Reference in New Issue