+ Start a Discussion
_Prasu__Prasu_ 

Email2Case: PKIX path building failed:

I am trying to run the Email2Case and it is giving me following error message. Same setup was running till last month. Does v 9.0 no more supported? or I am missing anything? It getting service URL as :

https://ap1-api.salesforce.com/services/Soap/u/9.0/00D90000000Zwhp 
2012-08-27 17:56:44,759 [main] INFO  Attempting to start service com.sforce.mail.EmailService with configuration file D:\Applications\Email2Case\\email2case.txt

2012-08-27 17:56:48,121 [main] INFO  LoginURL: https://www.salesforce.com/servic
es/Soap/u/9.0
2012-08-27 17:56:48,122 [main] INFO  Agent will connect to: https://ap1-api.salesforce.com/services/Soap/u/9.0/00D90000000Zwhp
2012-08-27 17:56:52,388 [main] ERROR Failed to bind to SFDC service on initialization.
HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validato
r.ValidatorException: PKIX path building failed: sun.security.provider.certpath.
SunCertPathBuilderException: unable to find valid certification path to requested target


 Any help will be really helpful.

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

JitendraJitendra

Hi Prasanna, Does your configuration have valid client certification path?

 

I have implemented SSL handshake however not with Salesforce. Please have a look at below URL:

 

http://goo.gl/bV3J1

_Prasu__Prasu_

Thanks for the reply!

 

I have a solution which fetches the server certificate and add that to the key store and then I can configure Java app to use that keystore. But the problem is I am using the standard Email-to-Case JAVA application provided by Salesforce. And which was working fine untill last few days.

 

_Prasu__Prasu_
This was selected as the best answer