Forum Discussion

MCotter's avatar
MCotter
Occasional Contributor
13 years ago

Help with WSA Security in SOAPUI Pro

Hi Smartbear Support

I’m new to WSA security,

I have set up my project with keystore and everything is working ok on outgoing security, but on incoming the packet never decrypts.

I am getting an error : org.apache.ws.security.WSSecurityException: The signature or decryption was invalid

There is very little configuration in the incoming security settings, I use the same keystore for incoming and outgoing.

I’m not sure what the configuration should be for this?

Can you help me?

8 Replies

  • MCotter's avatar
    MCotter
    Occasional Contributor
    Any news on this question?

    Is this forum still a support forum? Even an acknowledgment would be nice.
  • Hi!

    If you are using the same keystore in the incoming configuration to decrypt incoming messages, you have to make sure that it also contains the private key corresponding to the public key you used for decryption, if you are using asymmetric keys.

    Is this the case?

    --
    Regards

    Erik
    SmartBear Sweden
  • MCotter's avatar
    MCotter
    Occasional Contributor
    Thanks for the response.

    Yes the same keystore is being used for incoming and outgoing encryption, I have imported the servers signed key into the cleints (soupUI) keystore, and the server has the clients signed key in its keystore. This is still causing issues for me.



    Set up is like :



    https://docs.jboss.org/author/display/JBWS/WS-Security
  • Hi,

    hmm... well, it seems that for some reason soapUI isn't finding the correct client key to decrypt/verify the incoming message - can you attach screenshots of the incoming and outgoing WSS configurations that you are using?

    regards!

    /Ole
    SmartBear Software
  • MCotter's avatar
    MCotter
    Occasional Contributor
    One of our developers using soupUI version 4.5.0 sent a request to our server and received a response from server and it decrypted fine.

    When I imported his key into my project on soupUI version 4.5.1 I get a cert not trusted error. Could this be a problem between versions?
  • Hmm...

    There should be little or no difference between the versions when it comes to this.
    What error message do you get in soapUI 4.5.1 when you try to decrypt the message?

    --
    Regards

    Erik
    SmartBear Sweden