Good news:

So I was able to get Webtest working with certificates yesterday... I
don't know if there is a more efficient way but this works for now.

I used Java's InstallCert to add the certificate for the given sites I
want to hit to my trusted sites. I take the jssecacerts file it drops
(or whatever you rename it).

Then you use the following steps:
<property name="webtest.connectioninitializer"
value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer" />
<property name="webtest.truststore.file" value="certs/jssecacerts" />
<property name="webtest.truststore.passphrase" value="changeit" />
<!--changeit is default pass I believe-->

<groovy>
        System.setProperty("javax.net.ssl.keyStore", "<CERTPATH>");
        System.setProperty("javax.net.ssl.keyStorePassword",
"<CERTPASS>");
        System.setProperty("javax.net.ssl.keyStoreType", "<CERTTYPE>");
<!-- I used pkcs12 for example -->
</groovy>

The first three properties would remove the PKIX handshake errors and
the groovy steps would set the cert. I noticed that a truststore is
required if you set a keystore which is the main reason you must even
set that.

This should load the cert for the given test.

Hope it helps!

Cheers,
Sachin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Friday, August 24, 2007 1:06 AM
To: [email protected]
Subject: Re: [Webtest] Certificates and SSL

ESC Administrator - UCLA wrote:
> Hello,
> 
> I have seen the recent activity about certificates and webtest. I too 
> have been trying and have not seen any results as of yet and not much 
> discussion on the mailing list threads on these topics. I have 
> unsuccessfully tried with maven1.1 and the keystore steps mentioned in

> previous posts. Marc could you provide some insight on this issue? Or 
> if there are any examples that someone could post for certificates in
webtest.
> 
> Thanks,
> esc
> 

sorry to disappoint you if you await an answer from me here. I didn't
answer just because I couldn't.
I have experience with WebTest & SSL only in a special case (using
custom ConnectionProvider to work with Entrust Security Store).

I'm sure that a lot of WebTest user uses it with https without problem.
Can someone help here?

Marc.
--
Blog: http://mguillem.wordpress.com

_______________________________________________
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