cancel
Showing results for 
Search instead for 
Did you mean: 

WS security exception - KeyAndCertException

peter_jarsunek
Participant
0 Kudos

Hi guys,

we try to create a web-service, which should use WSSE document security. We tried a lot of settings on the J2EE (web as), but it seems, we have a problem to set up correctly certificates...

Following exception is always thrown:

javax.xml.rpc.soap.SOAPFaultException: 000C292F9A4900500000000D0000116800040495DA3EB195 : Error during the generation of encryption element. Error was: com.sap.security.core.securitypolicy.assertions.cert.KeyAndCertException Error reading the private key and certificate from the keystore (view WebServiceSecurity, alias XMLEncryption). Error: java.lang.NullPointerException null

Does somebody have experience with this? Could you please explain me, how to make the settings of certificates correctly? Or send some link?

Thanx in advance!!

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

martijndeboer
Advisor
Advisor
0 Kudos

Hi,

When decrypting an incoming message, the system looks for an key "XMLEncryption" in the view "WebServiceSecurity" inside the J2EE keystore.

What is your intended scenario?

Regards,

Martijn de Boer