cancel
Showing results for 
Search instead for 
Did you mean: 

Support for signature using secretkey

Not applicable

Support for signature using secretkey

Hi,

I am trying to invoke a web service which requires the client to perform signature and encryption using secret key.
I created a keystore of type JCEKS with my secret key. But i am not able to import this keystore into project keystores. Getting the following error

An error occured [javax.crypto.spec.SecretKeySpec cannot be cast to java.security.PrivateKey], see error log for details

Could you please help me on this.

The following is my complete requirement.

Generate secret key - secret key would be a 128 bit AES

1. sign usernametoken,timestamp and body using the above secret key
2. encrypt usernametoken and body using the above secret key
3. encrypt the secret key using the certificate in the wsdl and include the encrypted key in the request
4. Also include the base64 SHA1 of certification bytes

Please help me on how to achieve this using soapui.
4 REPLIES 4
Community Hero

Re: Support for signature using secretkey

Do you still live with this issue?
May it requires to use the right / supported keystore type.

Please see if these are helpful
https://www.soapui.org/forum/viewtopic.php?f=5&t=94
http://stackoverflow.com/questions/8985 ... d-jks-file


Regards,
Rao.
Not applicable

Re: Support for signature using secretkey

Hi,

i want to integrate my OWSM wss11_message protection policy with soap ui . it is possible ?
steps i have already done :

1) created a proxy service and used wss11_message protection policy at server side.
2) configured the keystore(with alias server_pvt_key) in credential store.
3) now if i try to hit the service from sbconsole(ans substitue server_pvt_key as the encryption key) it works fine both input and output are encrypted.
4)i am hitting the same servce from soap ui but getting the following
<faultcode>soapenv:Server</faultcode>
<faultstring>BEA-386200: General web service security error</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-386200</con:errorCode>
<con:reason>General web service security error</con:reason>
<con:location>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>

i have imported the client keystore into the soap and configured ws-incoming and ws-outgoing configurations.

my question how i can configure wss11 client policy into my soap ui.

thanks
kuldeep
Contributor

Re: Support for signature using secretkey

Hi,

 

Did you ever manage to configure WSS11 using Soap UI?

Occasional Contributor

Re: Support for signature using secretkey

There is a lot of problems and bugs with WSS support in soapUI/soapUI PRO/Ready! API but you can try workaround for JCEKS support.

Use Portecle and convert JCEKS to JKS which more or less works fine with soapUI.

New Here?
Join us and watch the welcome video:
Announcements