Issue
The DocuShare Email Agent is unable to connect with Office 365.
The following error is displayed in the logs:
Example:
28 Aug 2018 20:58:50 - [Thread[Thread-65,5,main]] - 684232258 [Thread-16] WARN mailagent - +13018+ imaps.connect caught javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target;
28 Aug 2018 20:58:50 - [Thread[Thread-65,5,main]] - nested exception is:
28 Aug 2018 20:58:50 - [Thread[Thread-65,5,main]] - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target on Tue Aug 28 20:58:50 EDT 2018
Solution
The security certificates (.cer) must be imported into the DSTrustStore.
Follow the instructions in the How to configure the DocuShare Email Agent to connect to Office 365 solution. The link is available at the bottom of this page and is also searchable in the Knowledgebase.
How to configure the DocuShare Email Agent to connect to Office 365
Solution Published: January 10, 2019
Solution ID: 1975