on 02-07-2005 6:07 PM
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.
Can you please post the stack trace?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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).
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.