mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
580 stars 86 forks source link

Accept or Deny Certificate message comes up everytime (Exchange) #228

Open Alternativend opened 2 years ago

Alternativend commented 2 years ago

Hey there, i have a problem with my davmail, which worked fine before my holidays 3 weeks ago though, but now im getting this certificate acceptance window on every action i make.

There are 3 different certificates which i can allow or deny. When i click allow, for three times, the requested action is working fine, neither when i deny. Changing into another folder for instance causes the same dialogs over and over again.

It seems accepting the certificates is just not working.

I have added one serial number of a certificate to the trusted field or what´s its called again in davmail. This had no effect it seems.

Running Debian 11 with the latest davmail version. It´s configured to use OWA, behind everything is an Exchange 2016 cluster.

I wonder if im the only one affected of this.

mguessan commented 2 years ago

Are all the certificates signed by the same certificate authority ? If yes then you just need to add the CA certificate to your JDK truststore (cacerts)

The accept dialog is just a quick workaround, the right way is to have trusted CAs in truststore.