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
- 2512 reads
Tag Cloud
Apache Rampart
Apache Synapse
Axis2
Axis2
Axis2/C
Rampart/C
Axis2/C
WSF/C
data services
ESB
ESB
Identity Solution
Rampart/Java
Sandesha2/Java
Synapse/Java
Axis2/Java
ESB/Java
AXIOM/Java
WSAS/Java
Mashup Server
Mule
OpenID
open source
PHP
WSF/PHP
POJO
Proxy Services
rampart
Rampart
Registry
REST
Sandesha2
security
SOA
soap
Spring
Synapse
Synapse
Training
webinar
Web Services
WS-Security
WSAS
WSAS
wsdl
wsf
WSF/C
WSF/PHP
WSO2
WSO2 WSF/PHP










