Hi there! 

>> config doesn't support the "useInsecureSSL" attribute <<

        So, in this case common question: do you use recent build?

Cheers,
Roman.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Thorsten Plappert
Sent: Wednesday, November 18, 2009 10:48 AM
To: [email protected]
Subject: Re: [Webtest] Webtest with SSL and client certificate
authentication

I tried this too, but I get an error:

config doesn't support the "useInsecureSSL" attribute

This attribute isn't supported by canoo 2.6. I tried the same with 3.0
and get the "old" error:

javax.net.ssl.SSLHandshakeException:
            Received fatal alert: bad_certificate


I forgot to mention, that if I deactivate the client certificate
authentication, everything is fine! I get the correct page, but with the
client certificate authentication, I got the error.


Greetings,
Thorsten


Am Mittwoch, den 18.11.2009, 12:31 +0300 schrieb Parkin Roman:
> 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
> 
-- 
Denkformat GmbH&Co.KG
Brandsende 2-4
20095 Hamburg
-------------------------------------
url:   www.denkformat.de
email: [email protected]
fon:   +4940 226 300 781
fax:   +4940 226 300 798

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

Reply via email to