Skip to Content
author's profile photo Former Member
Former Member

WS security exception - KeyAndCertException

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: 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!!


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 22, 2005 at 05:09 PM


    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?


    Martijn de Boer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.