To access any secure sites i.e. https urls you need to register the
certificate into the trust.keystore file that webtest accesses.

This is a bit of a hassle. Current process on my work PC is:

1. Go to page in IE6, rt-clk, properties on a blank part of page,
certificates button, details, copy to file, accept wizard defaults (DER
X.509) and name file e.g. certificate.cer in the folder where you have your
keystore file

2. Open a dos box in in this folder with the keystore file (in my case
called trust.keystore

3. In this folder execute keytool which is part of java JDK so that will
need to be on the path or copied to this folder first. e.g : keytool -import
-alias mycert -file certificate.cer -keystore trust.keystore

4. Follow the prompts to import e.g. entering password

Then in WebTest build file I have:

    <property name="webtest.connectioninitializer" value="
com.canoo.webtest.security.SunJsseBaseConnectionInitializer" />
    <property name="webtest.truststore.file" value="./trust.keystore" />
    <property name="webtest.truststore.passphrase" value="pepper77" />

and that seems to be all I need to access all the https sites I use.

regards,
  John

Reply via email to