Anonymous - 2003-11-13

Hallo  all,

I use httpUnit for testing two webapplications. Both use SSLv3 with certificates from the same signer. One goes fine ... but the other ... :o(
I've got this error-messages:

- with JDK 1.3.1, JSSE 1.0.3_02, httpUnit 1.5.4
java.net.UnknownHostException

- with JDK 1.4, JSSE 1.0.3_02, httpUnit 1.5.4
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:1208)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getHeaderFieldKey(DashoA6275)
    at com.meterware.httpunit.HttpWebResponse.loadHeaders(HttpWebResponse.java:201)
    at com.meterware.httpunit.HttpWebResponse.readHeaders(HttpWebResponse.java:183)
    at com.meterware.httpunit.HttpWebResponse.<init>(HttpWebResponse.java:53)
    at com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:61)
    at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:162)
    at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125)
    at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118)
    at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:99)
    at com.meterware.httpunit.WebClient.getResponse(WebClient.java:86)
    at webping.UrlResponder.run(Unknown Source)
Caused by: java.security.cert.CertificateException: Could not find trusted certificate
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
    ... 21 more

Please help me !!!

Michael

PS: When I use the URL in the Browser I get this:

- IE 6 : no Problems
- Mozilla 1.1 : "Unable to verify the identity of ... as trusted site." ... when I say "OK" it is fine.