Service Virtualization

 View Only
  • 1.  REST Step / SSL configuration or WebService Step with Multiple msg type like XML/JSON/SWIFT

    Posted Nov 07, 2019 01:37 PM
    Problem: Unable to configure different certs in local.properties for different test scripts which used in REST Step with JSON message(due to SSL configuration is not available in REST step) and no alternative to use Webservice step with JSON message (though Webservice step has the SSL configuration).

    we need SSL configuration (to configure the certs with JKS to post JSON messages) in REST step or Webservice Step need to provide the Multiple msg types like XML/JSON/SWIFT to select based on business needs (since Webservice step has the SSL configuration).

    present we don't have SSL configuration for REST step. if same cert configures in local.properties, then other scripts are failing ( due to those scripts need to configure different certs).

     to avoid this problem, REST step  need SSL configuration  or Webservice step need to provide the configuration for different msg types like XML/JSON/SWIFT.

    Please suggest if any other alternatives.

    ------------------------------
    Harichandra Ramireddy
    ------------------------------


  • 2.  RE: REST Step / SSL configuration or WebService Step with Multiple msg type like XML/JSON/SWIFT

    Broadcom Employee
    Posted Nov 07, 2019 02:59 PM
    Hi Harichandra,

    Please look at the knowledge article https://ca-broadcomcsm.wolkenservicedesk.com/wolken/esd/knowledgebase_search?articleId=10381
    which will provide information on using REST step with multiple certs. 

    In case f you can't access it, here is the information it has:

    To use the REST step with SSL, please provide the client keystore using the properties below in the local.properties: 

    ssl.client.cert.path = <A full path to the keystore>

    ssl.client.cert.pass = <Password for the keystore. This password will be automatically encrypted with Devtest restart>

    ssl.client.key.pass  = <Optional password for the key entry if using JKS keystore and key has a different password>

    ssl.client.alias = <Optional alias to use if the keystore has more than one certificates>

       If we want to configure and use multiple certificates, we need to import all the certificates into a single keystore file using keytool command and configure these details in local.properties file.

    Hope this information helps.

    -Prema




  • 3.  RE: REST Step / SSL configuration or WebService Step with Multiple msg type like XML/JSON/SWIFT

    Posted Nov 07, 2019 03:22 PM
    Hi Prema,

    Thank you. but every time when we add new partner service will get different cert and need to combine all certs like this.
    and also each cert will have different expiry dates and each time when expire the certs need to re-consolidation all. its bit expensive to maintain.

    if we have REST component with SSL configuration, then it will be easily maintained.  other alterntive  to add MSG_TYPE with JSON/XML/SWIFT to send msgs with WebService step.

    Thanks
    Harichandra


  • 4.  RE: REST Step / SSL configuration or WebService Step with Multiple msg type like XML/JSON/SWIFT
    Best Answer

    Broadcom Employee
    Posted Nov 07, 2019 03:42 PM
    Hi Harichandra,

    I agree, if REST step has an option to configure SSL like in Web Service Execution step that is the best way to handle it. Please open an enhancement on that at https://community.broadcom.com/ideation/allideas.

    Looks like your request is JSON and SWIFT, if it is XML request then you can use Web Service Execution step and if it is a GET call, you can use HTTP-HTML step and configure.

    These two steps contains the SSL tab that allows a keystore to be specified.

    Regards,
    Prema