[Webtest] HTTPS hostname wrong

Dierk Koenig webtest@lists.canoo.com
Thu, 4 Sep 2003 10:01:28 +0200


well, you need to import the certificate of the server you are
connecting to but you imported the canoo certificate canoo.cert.
This would enable you to connect to https://www.canoo.com but
not to your server.

cheers
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of linux guy
> Sent: Donnerstag, 4. September 2003 9:42
> To: webtest@lists.canoo.com
> Subject: [Webtest] HTTPS hostname wrong
> 
> 
> I am using webtest to test our SSL supported web server.
> I use
> keytool -keystore %JAVA_HOME%\jre\lib\security\cacerts -import 
> -file canoo.cer -alias canoo
> to import the site certificate in the cacerts keystore.
> 
> and use code below to test the web server,but ant tells me 
>  com.canoo.webtest.engine.StepExecutionException: Unexpected 
> exception caught:
>  java.io.IOException: HTTPS hostname wrong:  should be <192.168.0.1>
> 
> so,what is wrong?
> ---------------------------below is the content of my 
> SimpleTest.xml----------------------------
> <project name="SimpleTest" basedir="." default="main">
> 
>    <taskdef file="webtestTaskdefs.properties">
>       <classpath>
>          <fileset dir=".\" includes="**/lib/*.jar"/>
>       </classpath>
>    </taskdef>
> 
>    <target name="main">
>       <testSpec name="myTest">
>          <config 
>             host="192.168.0.1"
>             port="443"
>             protocol="https"
>             basepath="/" />
>          <steps>
>             <invoke 
>                stepid="get Login Page"
>                url="" />
>             <verifytitle 
>                stepid="we should see the login title"
>                text="Login Page" />
>          </steps>
>       </testSpec>
>    </target>
>    
> </project>
> -- 
> ______________________________________________
> http://www.linuxmail.org/
> Now with e-mail forwarding for only US$5.95/yr
> 
> Powered by Outblaze
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
>