Hello Arthur,

I am not sure this will help you, but I was also struggling a bit with the certificates and there was one catch that took me long to find out ...

my env was debian etch ... and the trick was that the keystore was supposed to be exactly on this path : /usr/lib/j2sdk1.5-sun/jre/lib/security ....

my properties then look like this:

    <property name="webtest.port" value="443"/>
    <property name="webtest.protocol" value="https" />
    <property name="webtest.truststore.file" value="trusted.keystore" />
    <property name="webtest.truststore.passphrase" value="something" />
<property name="webtest.connectioninitializer" value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer" />

let me know if this might be of any assistance to you ...

Dne Wed, 17 Oct 2007 14:19:48 +0200 Arthur Neudeck <[EMAIL PROTECTED]> napsal/-a:

Hoi ...

we are currently trying to use WebTest in a JEE environment. Having studied several samples, mailing lists and web-sites I do not find a way, how to make
the whole thing work using certificates.

The reported problem is:
"java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter
must be non-empty"

I use the following parameters in teh build.xml:
<property name="webtest.connectioninitializer"
value="com.canoo.webtest.security.SunJsseBaseConnectionInitializer" />
<property name="webtest.truststore.file"
value="certs/<...snipped...>\trust.keystore" />
<property name="webtest.truststore.passphrase" value="<...snipped...>" />

The Certificate is already imported into the "trust.keystore" mentioned above.

Using the "com.canoo.webtest.security.SunJsseClientAuthConnectionInitializer"
leads to the following problem:
"Exception raised while trying to create custom ConnectionInitializer
<com.canoo.webtest.security.SunJsseClientAuthConnectionInitializer> /
Exception: java.lang.NullPointerException"
--> It seems as if the class of the custom initializer was not found ...

Also I received - playing around with keystore/ truststore settings:
"Unconnected sockets not implemented"

Where do I get a documentation that might solve my problems?
What did I do wrong?

Thanx for your help!
Arthur



--
Karel Soupal
http://www.ework.cz
Software Testing Services and Solutions
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to