AW: [Webtest] Problems using certificate with Webtest ...
Arthur Neudeck
arthur.neudeck@giniality.com
Thu, 18 Oct 2007 19:13:45 +0200
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: arthur.neudeck@giniality.com; WWW: http://www.giniality.com
<http://www.giniality.com/> =20
-----Urspr=FCngliche Nachricht-----
Von: Karel Soupal [mailto:karels@ework.cz]=20
Gesendet: Mittwoch, 17. Oktober 2007 17:44
An: webtest@lists.canoo.com
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 =20
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 =20
supposed to be exactly on this path : =20
/usr/lib/j2sdk1.5-sun/jre/lib/security ....
my properties then look like this:
<property name=3D"webtest.port" value=3D"443"/>
<property name=3D"webtest.protocol" value=3D"https" />
<property name=3D"webtest.truststore.file" =
value=3D"trusted.keystore" />
<property name=3D"webtest.truststore.passphrase" =
value=3D"something" />
<property name=3D"webtest.connectioninitializer" =20
value=3D"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 =20
<arthur.neudeck@giniality.com> 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 =20
> 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=3D"webtest.connectioninitializer"
> value=3D"com.canoo.webtest.security.SunJsseBaseConnectionInitializer" =
/>=20
> <property name=3D"webtest.truststore.file"=20
> value=3D"certs/<...snipped...>\trust.keystore" /> <property=20
> name=3D"webtest.truststore.passphrase" value=3D"<...snipped...>" />
>
> The Certificate is already imported into the "trust.keystore"=20
> 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=20
> --> ...
>
> 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
--=20
Karel Soupal
http://www.ework.cz
Software Testing Services and Solutions
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest