Re: Can anybody tell the solution for this: paypal cert issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Can anybody tell the solution for this: paypal cert issue

Toddnick
Hello Pradeep,
This looks just like an error I had a while back. I added some notes on this
to the docs site- In a nutshell I had to add the payment gateway's cert
chain (save it from your browser) to ofbiz with Keytool. This way ofbiz
knows its ok to connect to that ssl protected site.
Hope this helps
Todd

On Mon, Sep 1, 2008 at 12:17 PM, Pradeep Kumar <
[hidden email]> wrote:

> Hi all,
>
> I am integrating the PayPal express checkout in my ofbiz application for
> checkout purpose, but while connecting with the server
> the following error is comes related to ssl. but my browser is already
> having the ssl but the code is throwing the following exception
>
> 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
>    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
> In paypalfunctions.java Exception in httpcall() e ::
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to re
>    at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1518)
>    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174)
>    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168)
>    at
>
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:848)
>    at
>
> com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
>    at
> com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
>    at
> com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
>    at
>
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:818)
>    at
>
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
>    at
>
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057)
>    at
>
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1041)
>    at
> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:402)
>    at
>
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
>    at
>
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:840)
>    at
>
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
>    at
> org.ofbiz.ecart.misc.paypalfunctions.httpcall(paypalfunctions.java:394)
>    at
>
> org.ofbiz.ecart.misc.paypalfunctions.CallShortcutExpressCheckout(paypalfunctions.java:190)
>    at
> org.ofbiz.ecart.misc.expresscheckout.payPalDoGet(expresscheckout.java:96)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:585)
>    at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88)
>    at
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74)
>    at
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:472)
>    at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:304)
>    at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
>    at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>    at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:249)
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>    at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>    at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>    at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>    at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>    at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>    at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>    at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>    at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>    at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>    at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>    at
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>    at
>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>    at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>    at java.lang.Thread.run(Thread.java:595)
> Caused by: sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
>    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:221)
>    at
> sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:145)
>    at sun.security.validator.Validator.validate(Validator.java:203)
>    at
>
> com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:172)
>    at
>
> com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
>    at
>
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:841)
>    ... 44 more
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
>    at
>
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:236)
>    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
>    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:216)
>
>
> Can anybody tell me how to correct this problem and wat should i need to do
> to solve this problem? Please...
>
>
> With regards,
> S K Pradeep kumar
>



--
Todd Burdeinei
Web Developer
Burdeinei Corp
702-259-3273 office / fax number
702-372-9920 cell
[hidden email]