From 9e5435a5f3f0ebe1d56ad9b7d770757c2bd2c71b Mon Sep 17 00:00:00 2001 From: Kris Wong Date: Tue, 1 Feb 2011 13:15:54 +0000 Subject: [PATCH] Fix the ability to accept invalid SSL certificates for exchange support. --- src/com/fsck/k9/mail/store/WebDavStore.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index 6dd4c1ec4..f3a9a63ca 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -32,6 +32,7 @@ import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; +import javax.net.ssl.SSLException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; @@ -674,6 +675,10 @@ public class WebDavStore extends Store response.getStatusLine().toString()); } } + catch (SSLException e) + { + throw new CertificateValidationException(e.getMessage(), e); + } catch (IOException ioe) { Log.e(K9.LOG_TAG, "IOException: " + ioe + "\nTrace: " + processException(ioe));