Published July 29, 2020 | https://doi.org/10.59348/p45j7-fjr65

davmail uses Java certificate store, not central ca-certificates

Creators & Contributors

  • 1. Birkbeck, University of London, English and Humanities

A note to self (and others) for when this problem happens again. My university today updated the certificate for their OWA webmail service, signed by a certificate authority that I did not have in my trust chain.

This triggers the following error in DavMail: "java.security.cert.CertificateException: User rejected certificate".

In order to fix it, you need to install the certs into the Java keystore, which is different to the central ca-certificates package on Debian.

So, use Firefox or similar to download the PEM files (authority + chain), then do the following in a bash script:

"for file in *.pem; do openssl x509 -outform der -in "$file" -out /tmp/certificate.der; keytool -import -alias "$file" -keystore ./java/cacerts -file /tmp/certificate.der -deststorepass changeit -noprompt; done;"

davmail uses Java certificate store, not central ca-certificates was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on July 30, 2020.

Files

10.59348_p45j7-fjr65.pdf

Files (96.1 kB)

Name Size Download all
md5:20e245c219f3de943c02a83f7e1847e3
96.1 kB Preview Download

Additional details

Description

A note to self (and others) for when this problem happens again. My university today updated the certificate for their OWA webmail service, signed by a certificate authority that I did not have in my trust chain.

Dates

Issued
2020-07-29T00:00:00Z
Updated
2020-07-29T23:00:00Z