Ask a Question

Adding Public Key Certificate to a SOAP Request

JuamBer
Frequent Visitor

Adding Public Key Certificate to a SOAP Request

I am trying to add a digital certificate that only contains the public key to the header of the request, but I get this error in the "error log". I guess that in the configuration it expects a private key but in this case I don't want to send it, I just want the public one.

 

The error:

org.apache.ws.security.WSSecurityException: Signature creation failed

Caused by: org.apache.ws.security.WSSecurityException: Cannot find key for alias: [certificado]

at org.apache.ws.security.components.crypto.Merlin.getPrivateKey(Merlin.java:703)

at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:504)

1 REPLY 1
jkrolczy
Regular Contributor

Is this similar to like a Bearer token into the header ?

JamesK
cancel
Showing results for 
Search instead for 
Did you mean: