Re: Webtest with client authentication
Daniel Plappert <[email protected]>
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Message-ID | <[email protected]> |
Hi Srini, OK, I changed the protocol from https to tcp for you and I got a MalformedURLException and canoo said, that tcp isn't a supported protocol. Greetings, Daniel Am 06.01.2011 um 17:19 schrieb sriharini sriharini: > Hi Daniel, > my web application also has the client authentication and certificate, using tcp as protocol solved the problem. Below is my config for you reference. Can you please run your script and see if its failing? > Thanks, > Srini > > <config useInsecureSSL="true" host="localhost" port="61522" protocol="tcp" saveresponse="true"> > <header name="Accept-Encoding" value="gzip, deflate"/> > <header name="Accept-Language" value="en-us"/> > <header name="Accept" value="image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*"/> > </config> > > > > > > On Thu, Jan 6, 2011 at 11:08 AM, Daniel Plappert <[email protected]> wrote: > Hi Srini, > > mmhh, but TCP isn't a protocol. Changing from https to tcp will cause a MalformedURLException. > > Greetings, > Daniel > > > > Am 06.01.2011 um 16:55 schrieb sriharini sriharini: > >> Hi Daniel, >> In your config, can you please change the protocol to tcp instead of https and try running the test? >> >> protocol="tcp" >> >> Thanks, >> Srini >> >> On Thu, Jan 6, 2011 at 9:29 AM, Daniel Plappert <[email protected]> wrote: >> Hi, >> >> I came across the following problem, which is driving me crazy: >> I just want to test a web application, which uses a client authentication with certificates. I downloaded the doc.zip, which contains an example. The problem is, this example doesn't work. Not because of the missing web application, but the xml file contains invalid/missing declarations. It would be great to keep the doc up-to-date since - it is really frustrating if the sample doesn't work. >> >> I am using canoo r_1810 with the following configuration for my test: >> >> <target name="test" depends="wt.defineMacros"> >> >> <property name="webtest.keystore.file" value="certs/client.keystore" /> >> <property name="webtest.keystore.passphrase" value="client" /> >> <property name="webtest.truststore.file" value=".keystore"/> >> <property name="webtest.truststore.passphrase" value="test1234"/> >> <property name="webtest.connectioninitializer" value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer"/> >> <property name="webtest.keystore.alias" value="user1" /> >> >> <webtest name="Startseite aufrufen"> >> <config >> protocol="https" >> host="localhost" >> port="8443" >> useInsecureSSL="true"> >> </config> >> >> <invoke url="/index.html" description="Gehe zur Startseite"/> >> <verifyTitle text="TEST" /> >> .... >> >> There are two points I don't understand: >> >> 1. the truststore-file. What is it for? >> 2. Whatever I type for the keystore-file, I always get the same error (from webserver): bad_certificate. And this bothers me, because I can't tell where the problem lies. Even if I tried a wrong password, the error message remains the same - it is always the same (even when no certificate is sent). >> >> So, I am lost, because the error message I get doesn't help and the provided example doesn't show how I can convert a client certificate (a p12 file) into a keystore and why this is necessary. >> >> I would be very helpful if someone tested a web application with a client authentication and can provide a working example. I really appreciate your help. >> >> Thanks a lot in advance, >> Daniel >> >> >> >> > > -- > 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 > > Sitz der Gesellschaft: > Bienenkamp 3b > 22159 Hamburg > fon: +4940 414 812 69 > fax: +4940 414 812 70 > Amtsgericht Hamburg: HRA 97215 > > Komplementär : Denkformat Beteiligungsgesellschaft mbH > Amtsgericht Hamburg: HRB 84324 > > Geschäftsführer: Lars Graetke, Thomas Kunzmann > > -- 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 Sitz der Gesellschaft: Bienenkamp 3b 22159 Hamburg fon: +4940 414 812 69 fax: +4940 414 812 70 Amtsgericht Hamburg: HRA 97215 Komplementär : Denkformat Beteiligungsgesellschaft mbH Amtsgericht Hamburg: HRB 84324 Geschäftsführer: Lars Graetke, Thomas Kunzmann