Skip to content
Snippets Groups Projects
Commit 9089bd1f authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove database on reinstall

parent 23eb5fac
No related branches found
No related tags found
No related merge requests found
......@@ -5684,7 +5684,7 @@ function configure_imap_client_certs {
fi
# make a CA cert
if [ ! -f /etc/ssl/private/dovecot-ca.key ]; then
freedombone-addcert -h dovecot-ca --ca
freedombone-addcert -h dovecot-ca --ca
fi
# CA configuration
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 'keyUsage = digitalSignature,keyEncipherment' >> /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
echo 0001 > /etc/ssl/sslserial
#freedombone-clientcert -u $MY_USERNAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment