Hoi Karel ... Did not work ... Anyway: Thank you for trying to help.
Arthur PS: Seems to be aproblem of the certificate ... ------------------------------------------------------------------- Giniality AG - Arthur Neudeck - Steinenberg 21, CH-4051 Basel P: +41 61 226 99 66 - F: +41 61 226 99 69 - M: +41 79 788 76 07 E-Mail: [EMAIL PROTECTED]; WWW: http://www.giniality.com <http://www.giniality.com/> -----Ursprüngliche Nachricht----- Von: Karel Soupal [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Oktober 2007 17:44 An: [email protected] Betreff: Re: [Webtest] Problems using certificate with Webtest ... 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 _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

