Forum Discussion

amitnimbhorkar's avatar
amitnimbhorkar
New Contributor
9 years ago
Solved

How to attach ssl certificates to response using Groovy script

Hi,   I am trying to connect a web service using Groovy script which is happening successfuly and I am getting soap message back.However, I am not getting how to attach in incoming ssl certificates...
  • amitnimbhorkar's avatar
    9 years ago

    As this script was meant for the default mock responses which access actual web service in case we have requests other than the mocked ones, I created a keystore locally and imported the client certificates in cacerts in /java/jdk/jre/lib/security/.

    Then in preferences->ssl settings, I pointed my 'keystore', 'mock keystore' and 'mock truststore' to my local keystore. Also enabled mock ssl. Its not mandatory to use 8443 as mock port as advised everywhere on net, I just used port 9443 and it worked.

     

    Make sure to call your mock service over https instead http.