Need a help to setup Client side SSL.
Need a help to setup Client side SSL.
I have Private Key(.key) and Public Key(.cert) need to be configured in SOATEST in order to validate HTTPS. As per information provided in Parasoft document following steps has been taken.
1) KeyStore has been created under Test Suite (right click on Test Suite -> Add new --> Global property --> Global Key Store).
2) Updated Certificate and Private Key information on Key Store Configuration page.
3) have created new Test for REST Client
4) Under HTTP Options -->Security --> Client side SSL - selected key store from step 1.
5) Run the test.
The Response still shows 401 Unauthorized. Am i missing anything here?
Comments
-
Hi divyang,
first, install Java Cryptography Extension (JCE) into SOAtest.
Then try to run test with proper certificate.--
Ireneusz Szmigiel
http://www.catb.org/esr/faqs/smart-questions.html0 -
first, install Java Cryptography Extension (JCE) into SOAtest.
Next, you need to create a keystore file that contains both the certificate and private key. I'd recommend creating a pkcs12 keystore file using the "openssl" command:
openssl pkcs12 -export -in public.cert -inkey private.key -out keystore.p12
. For more detail, I found this nice reference on stackoverflow: How can i create keystore from an existing certificate (abc.crt) and abc.key files?Lastly, reference your keystore file (the .p12 file) from the "Key store file" field in your test suite's "Key Store".
0