I have a web service written in Java and I have a client who has a web service written in .NET. We are using x509 security certificates. When my client sends a message to my service, he gets an error that says, "General security error (Unexpected number of X509Data: for decryption (KeyId))" . I checked with my client and he is using the correct certificates to sign and encrypt his messages and I'm using the correct certificates to decrypt messages and verify signatures. Below is the error message that he was getting. What could be the problem?
javax.xml.soap.SOAPException: General security error (Unexpected number of X509Data: for decryption (KeyId))
Caused by: org.apache.axis2.AxisFault: General security error (Unexpected number of X509Data: for decryption (KeyId))
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)RESPONE null
... 3 more
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com