[ https://wso2.org/jira/browse/WSAS-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prabath Siriwardena resolved WSAS-778. -------------------------------------- Resolution: Fixed Fixed in WSAS 3.0. For WSAS 2.3 please refer http://blog.facilelogin.com/2008/10/secure-conversation-with-sts.html > STSsample fails due to an invalid certificate version > ----------------------------------------------------- > > Key: WSAS-778 > URL: https://wso2.org/jira/browse/WSAS-778 > Project: WSO2 WSAS > Issue Type: Bug > Components: samples > Affects Versions: Nightly > Environment: winxp, jdk15 > Reporter: Charitha Kankanamge > Assignee: Afkham Azeez > Priority: High > > Follow the instructions given in sample-guide and run client. You will get > the following exception. > 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://10.100.1.150: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) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Wsas-java-dev mailing list Wsas-java-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev