Hi all,
I have tried to setup a "Wait for email" activity to be able to monitor a gmail account (end point), but no matter what I try, I get this error:
2014-08-06T15:40:21.912-0400 ERROR [TThread-30] [] [com.documentum.bps.email.inbound.runtime.EmailPoller:91] Could not retrieve messages from mail server: imap.gmail.com
javax.mail.MessagingException: Certificate not verified.;
nested exception is:
javax.net.ssl.SSLException: Certificate not verified.
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:618)
at javax.mail.Service.connect(Service.java:291)
at com.documentum.bps.email.EmailUtils.createEmailStore(EmailUtils.java:148)
at com.documentum.bps.email.inbound.runtime.EmailStorePool.createEmailStore(EmailStorePool.java:134)
at com.documentum.bps.email.inbound.runtime.EmailStorePool.getEmailStoreFromPool(EmailStorePool.java:123)
at com.documentum.bps.email.inbound.runtime.EmailStorePool.getEmailStore(EmailStorePool.java:71)
at com.documentum.bps.email.inbound.runtime.EmailPoller.run(EmailPoller.java:65)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.net.ssl.SSLException: Certificate not verified.
at com.rsa.sslj.x.aE.b(Unknown Source)
at com.rsa.sslj.x.aE.a(Unknown Source)
at com.rsa.sslj.x.aE.a(Unknown Source)
at com.rsa.sslj.x.aP.c(Unknown Source)
at com.rsa.sslj.x.aP.a(Unknown Source)
at com.rsa.sslj.x.aP.h(Unknown Source)
at com.rsa.sslj.x.cy.startHandshake(Unknown Source)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:503)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:234)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:109)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:585)
... 7 more
Caused by: com.rsa.sslj.x.g: Certificate not verified.
at com.rsa.sslj.x.cE.a(Unknown Source)
at com.rsa.sslj.x.cE.b(Unknown Source)
at com.rsa.sslj.x.cE.a(Unknown Source)
... 18 more
Caused by: java.security.cert.CertificateException: the certificate chain is not trusted, Parameters must be PKIXParameters or be CertPathWithOCSPParameters containing PKIXParameters
at com.rsa.sslj.x.ad.a(Unknown Source)
at com.rsa.sslj.x.ad.checkServerTrusted(Unknown Source)
at com.documentum.bps.email.ssl.BPSEmailX509TrustManager.checkServerTrusted(BPSEmailX509TrustManager.java:48)
at com.rsa.sslj.x.bv.a(Unknown Source)
... 21 more
I have load the gmail certificate in the JVM truststore, but I keep getting the same message. I have explicitly told the JVM which truststore to use but still getting the error. I'm getting the same error on hotmail too. So I was wondering if anyone manage to get this to work.
I was also wondering if there is a config element in BPS that we could instruct it not to validate the Certificats (just of testing purposes oviously!)
Cheers
Alain