Hi,

I am trying to test a web app, which authenticates clients by their
personal certificate. The problem is, I can't get canoo webtest to send
the personal certificate to the jetty server. The jetty server is
configured correctly. I tried to call the application using a browser,
it worked. So, I am very sure, canoo seems to be the problem. I
configured canoo as follows:

<property name="webtest.truststore.file" value=".keystore"/>
<property name="webtest.truststore.passphrase" value="changeit"/>
<property name="webtest.connectioninitializer" 
  value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer"/>
<property name="webtest.keystore.file" value="personal-cert.p12"/>
<property name="webtest.keystore.passphrase" value="changeit"/>

Canoo throws the following exception:

Unexpected exception caught: javax.net.ssl.SSLHandshakeException
        at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:113)
        at com.canoo.webtest.steps.Step.handleException(Step.java:378)
        at com.canoo.webtest.steps.Step.execute(Step.java:109)
...
--- Nested Exception ---
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1682)
...



Jetty throws the following exception:
avax.net.ssl.SSLHandshakeException: null cert chain
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
        at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
...


Is there a documentation available I can use to configure canoo correctly? Or 
has anyone an idea what I am doing wrong?

I am using canoo webtest 2.6.

Greetings,
Thorsten


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to