Unexpected number of X509Data: for Signature. Why?
Submitted on June 1, 2006 - 01:29. Story : Project :
Q: I get an exception saying "Unexpected number of X509Data: for Signature". Where have I gone wrong? 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
(1 vote)
»
- Login or register to post comments
- Printer friendly version
- 2763 reads
Tag Cloud
Apache
Apache Synapse
Axis
Axis2
Axis2
Axis2/C
WSF/C
Rampart/C
Axis2/C
Data Services
data services
ESB
ESB
Identity Solution
Synapse/Java
Axis2/Java
Rampart/Java
WSAS/Java
AXIOM/Java
Sandesha2/Java
ESB/Java
Mashup Server
Mashup server
OpenID
open source
WSF/PHP
PHP
Proxy Services
Rampart
rampart
Registry
REST
security
SOA
soap
Spring
Synapse
Synapse
webinar
Web Services
WS-Security
WSAS
WSAS
wsdl
wsf
WSF/C
WSF/PHP
WSO2
WSO2 Registry
WSO2 WSF/PHP










