[Webtest] Problems using certificate with Webtest ...
Arthur Neudeck
Arthur Neudeck <arthur.neudeck@giniality.com>
Wed, 17 Oct 2007 14:19:48 +0200
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
--