hi
I believe I have imported client.cert correctly now by executing "import cert" from the keystore. Did I do this correctly?

When I execute ./run-client.sh I get this:


$ ./run-client.sh
Using WSO2WSAS_HOME: /installs/ApacheStockTrader/wso2wsas-2.3
Using JAVA_HOME : /Library/Java/Home
Security token service endpoint address: 
http://localhost:9762/services/wso2wsas-sts
Secured Service endpoint address: http://localhost:9762/services/echo
log4j:WARN No appenders could be found for logger (org.apache.axis2.deployment.FileSystemConfigurator).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: Error during encryption
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java: 70)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429)
at org .apache .axis2 .description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org .apache .axis2 .description .OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java: 163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java: 548) at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java: 134)
        at org.wso2.wsas.sample.sts.client.Client.main(Client.java:98)
Caused by: org.apache.rampart.RampartException: Error during encryption
at org .apache .rampart .builder .AsymmetricBindingBuilder .doSignBeforeEncrypt(AsymmetricBindingBuilder.java:544) at org .apache .rampart .builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java: 93)
        at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java: 64)
        ... 9 more
Caused by: org.apache.ws.security.WSSecurityException: An unsupported token was provided (An X509 certificate with version 3 must be used for SKI. The presented cert has version: 1) at org .apache .ws .security .message .token .SecurityTokenReference .setKeyIdentifierSKI(SecurityTokenReference.java:272) at org .apache .ws .security .message.WSSecEncryptedKey.prepareInternal(WSSecEncryptedKey.java:253) at org.apache.ws.security.message.WSSecEncrypt.prepare(WSSecEncrypt.java: 260) at org .apache .rampart .builder .AsymmetricBindingBuilder .doSignBeforeEncrypt(AsymmetricBindingBuilder.java:510)
        ... 12 more
Exception in thread "main" org.apache.rahas.TrustException: Error in obtaining token from : "http://localhost:9762/services/wso2wsas-sts"; at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java: 141)
        at org.wso2.wsas.sample.sts.client.Client.main(Client.java:98)


Jonathan Gershater


_______________________________________________
Wsas-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user

Reply via email to