[Webtest] Canoo Webtest and SSL Client Authentication
Goeschl Siegfried
webtest@lists.canoo.com
Mon, 11 Nov 2002 13:57:40 +0100
Hi folks,
I'm currently integrating Canoo Webtest into MAVEN =
(http://jakarta.apache.org/turbine/maven/) and have a JSSE/Canoo =
question:
Is it possible to use SSL with client authentication with Canoo Webtest =
?! As far as I know it is impossible to import the client.pfx into a =
keystore but I think it should be possible to use the PFX as keystore. =
But I get an invalid key store format ... any ideas.
If use only the public key of the client in the client keystore I get =
"HTTP 403 - Access forbidden"
Environment
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+) I set up the trust.keystore with the server certificate
+) I'm using the latest Canoo Webtest (Build 256)
+) I'm using the included JSSE jars=20
+) I'm running on Windows 2000 Server
Stacktrace
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
webtest:test:
[echo] Starting Canoo Webtest ...
[echo] Processing testSampleGF.xml
[java] Buildfile: =
C:\DEVELOP\MAKLERPLATTFORM\JAVADEV\SampleGF\webtest\testSampleGF.xml
[java]
[java] testQueryVertrag:
[java] [testSpec] Using Custom ConnectionInitializer: =
com.canoo.webtest.security.SunJsseClientA
uthConnectionInitializer
[java] [testSpec] Ext property: =
webtest.truststore.file=3Dwebtest/certs/trust.keystore
[java] [testSpec] Ext property: =
webtest.truststore.passphrase=3Dtogether
[java] [testSpec] Ext property: =
webtest.keystore.file=3Dwebtest/certs/client.pfx
[java] [testSpec] Ext property: webtest.keystore.passphrase=3Dtest
[java] [testSpec] Ext property: =
webtest.keystore.alias=3Dbenutzermakler
[java] [testSpec] java.io.IOException: Invalid keystore format
[java] [testSpec] at =
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:609)
[java] [testSpec] at =
java.security.KeyStore.load(KeyStore.java:613)
[java] [testSpec] at =
com.canoo.webtest.security.SunJsseClientAuthConnectionInitializer.getKeyM=
anagers(SunJsseClientAuthConnectionInitializer.java:24)
[java] [testSpec] at =
com.canoo.webtest.security.SunJsseBaseConnectionInitializer.installTrustA=
ndKeyManager(SunJsseBaseConnectionInitializer.java:82)
[java] [testSpec] at =
com.canoo.webtest.security.SunJsseBaseConnectionInitializer.initializeCon=
nection(SunJsseBaseConnectionInitializer.java:38)
[java] [testSpec] at =
com.canoo.webtest.steps.Target.invokeCustomInitializerIfNeeded(Target.jav=
a:285)
Thanks in advance
Siegfried Goeschl