org.apache.wss4j.common.ext.WSSecurityException: Cannot find key for alias: [myclientkey]

Stack Overflow | Joseph Hwang | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    An error was discovered processing the <wsse:Security> header in SoapUI

    Stack Overflow | 7 months ago | Joseph Hwang
    org.apache.wss4j.common.ext.WSSecurityException: Cannot find key for alias: [myclientkey]

    Root Cause Analysis

    1. org.apache.wss4j.common.ext.WSSecurityException

      Cannot find key for alias: [myclientkey]

      at org.apache.wss4j.common.crypto.Merlin.getPrivateKey()
    2. Apache WSS4J WS-Security Common
      Merlin.getPrivateKey
      1. org.apache.wss4j.common.crypto.Merlin.getPrivateKey(Merlin.java:632)
      1 frame
    3. Apache WSS4J DOM WS-Security
      EncryptedKeyProcessor.handleToken
      1. org.apache.wss4j.dom.processor.EncryptedKeyProcessor.getAsymmetricDecryptedBytes(EncryptedKeyProcessor.java:259)
      2. org.apache.wss4j.dom.processor.EncryptedKeyProcessor.getAsymmetricDecryptedBytes(EncryptedKeyProcessor.java:301)
      3. org.apache.wss4j.dom.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:194)
      4. org.apache.wss4j.dom.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
      4 frames
    4. org.apache.wss4j
      WSSecurityEngine.processSecurityHeader
      1. org.apache.wss4j.dom.engine.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:344)
      1 frame
    5. Apache CXF Runtime WS Security
      WSS4JInInterceptor.handleMessageInternal
      1. org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:280)
      1 frame