Service Virtualization

 View Only

How to handle Multiple SSL Certificates conflicts  for Restful Services 

Aug 16, 2017 05:23 PM

Question

We used to pass the SSL certificate details in local.properties file. But there is multiple type of SSL certificates which we need to use in same DevTest project. How can we do that ? 

Environment

All Supported DEVTEST environments.

 

Answer

By design,  for REST  GET and POST services we configure the SSL  certificate details in local.properties file using the properties below. 

ssl.client.cert.path 
ssl.client.cert.pass 
ssl.client.key.pass 
ssl.client.alias 

Once set, this property is global to all the REST services. This configuration can be a conflict to other REST services with different SSL certs. 

To use multiple SSL certificates for different REST services,  you would have to use the HTTP GET step or the Web Servicess Execution Step for GET /POST calls.

The keystore files for those certificates can be stored in projects Data folder with subfolder as certificates. These keystore files are .jks or  pkcs12 keystores.

Usage:

  1. For GET Calls - Use the HTTP Request-HTTP GET  Step.  Https is specified as the protocol and the port and path are entered. Select the SSL Tab to configure  SSL keystore file details. 
  2. For POST Calls – Use the Web Service Execution(XML)  Step.  Use the ENDPOINT field for the https POST call. Under the Advanced Setting, select SSL Tab to Configure SSL Keystore file details 

Additional Information

https://docops.ca.com/devtest-solutions/9-1/en/reference/test-step-descriptions/web-web-services-steps/http-html-request-step 

Statistics
0 Favorited
13 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.