Unexpected number of X509Data: for Signature. Why?

Q: I get an exception saying "Unexpected number of X509Data: for Signature". Where have I gone wrong?
Date: Thu, 1st Jun, 2006
Level:
Reads: 8033 Comments: 1 | Login or register to post comments
Ruchith Fernando
Software Engineer
WSO2 Inc.
A: This occurs when the value of your "user" parameter is different from the alias of the private key that you have in your keystore. Also make sure you provide the password of the private key in the callback handler that you specify in the configuration (passwordCallbackClass). Example: If your keystore holds a private key with the alias : bob Axis 1.x:
<requestFlow>
<handler type="java:org.apache.ws.axis.security.WSDoAllSender">
<parameter name="user" value="bob"/>
<parameter name="action" value="Timestamp Signature"/>
....
....
</handler>
</requestFlow>
Axis2/Rampart :
<parameter name="OutflowSecurity">
<action>
<items>Timestamp Signature</items>
<user>bob</user>
....
....
</action>
</parameter>

Applies To:

  • Apache WSS4J and Apache Rampart/Java
  • JDK - 1.4, 1.5
mark.john878.yahoo.com's picture

web development

Webnomics Technologies is a asp.net development and outsourcing company providing affordable design and development services. Now a new project of Virtual IT launched as a virtual education....(forex trading ) Webnomics technologies has their expertise in forex market and travel industry which provide most latest forex trading, forex broker and updates. Webnomics Technologies also have travel services for the one cheap trip booking booking. Webnomics technologies has a software development department to provide modern software | best travel deals | travel insurance | web development