use useInsecureSSL parameter in config
<config basepath="${server.basepath}"
useInsecureSSL="true" >
Thorsten Plappert :
Thanks for your answer, but unfortunately, I get the same error. I start
the test as follows:
<webtest name="Check if server is available.">
<config host="localhost"
port="8443"
protocol="https"
basepath="test"
summary="true"
saveresponse="true" />
<steps>
<groovy>step.context.webClient.useInsecureSSL=true</groovy>
<invoke url="kundendaten.htm" description="Call server."/>
<verifyTitle description="check title" text="BLABLA" />
</steps>
</webtest>
The "groovy step" is successful, but the second step failed.
Greetings,
Thorsten
Am Mittwoch, den 18.11.2009, 10:03 +0100 schrieb Hesteric Roman -
Together SK:
Hi there!
Quick fix:
<steps>
<groovy>step.context.webClient.useInsecureSSL = true</groovy>
.
.
.
</steps>
Cheers,
Roman
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Thorsten Plappert
Sent: Wednesday, November 18, 2009 9:52 AM
To: [email protected]
Subject: [Webtest] Webtest with SSL and client certificate
authentication
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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest