cancel
Showing results for 
Search instead for 
Did you mean: 

SSL error

former_member322327
Participant
0 Kudos

Hi everyone:

We are using SSL for a credit card payment into a Webdynpro app, but when test de aplicaction we have been getting this error:

exception javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

Any idea about this?

Thanks

Eduardo Campos.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Can you please post the stack trace?

Armin

former_member322327
Participant
0 Kudos

Hi Armin

I'm sorry, but we can't get the stack trace, do you know if we can get the stack in some log in the server?

Thanks

Regards

Eduardo

former_member322327
Participant
0 Kudos

Hi Armin we finally, have de stack:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)

at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA12275)

at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:569)

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(DashoA12275)

at com.banorte.payworks.api.PaymentConnector.processTransaction(PaymentConnector.java:95)

at com.banorte.payworks.api.PaymentConnectorTester.sendTransaction(PaymentConnectorTester.java:37)

at com.utm.tdc.TDCPayment.main(TDCPayment.java:49)

Caused by: sun.security.validator.ValidatorException: No trusted certificate found

at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)

at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)

at sun.security.validator.Validator.validate(Validator.java:202)

at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA12275)

at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA12275)

... 13 more

sun.security.validator.ValidatorException: No trusted certificate found

we will appreciate much your help.

Regards.

Eduardo.

martijndeboer
Advisor
Advisor
0 Kudos

The problem is related to the trusted certificates. When using SSL, the server must identify itself by an X.509 SSL server certificate and the client may authenticate using an X.509 client certificate.

It is up to the client to verify the servers X.509 certificate against a set of trusted certificates (i.e. 'all Verisign certificates'). Your SSL client seems to check the servers certificate, but fails as it is not trusted. For debugging JSSE, see http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#Debug

The J2EE Engine 6.30 have an own service for maintaining HTTP connections through the Visual Administrator. This includes maintaining the list of trusted certificates in the keystore, use of SSL mutual authentication and secure storage of username/password. For details see http://help.sap.com/saphelp_nw04/helpdata/en/17/d609b48ea5f748b47c0f32be265935/frameset.htm

(or search for "Destination Service API" in help.sap.com).

former_member322327
Participant
0 Kudos

Thanks Martijn:

your answer was helpful.

Regards.