12 years ago
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.
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.