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: 7480 Comments: 0 | 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
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)