Forum Discussion

testhrishi1's avatar
testhrishi1
New Member
9 years ago

How to secure Mock service using client authentication certificate using soapUI?

How to secure Mock service using client authentication certificate using soapUI?

5 Replies

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    Basically you need to fill out some preferences, no changes to the existing mock are necessary. For example, say you already have a mock listening for http on 9001, then to enable https traffic over 9002 and require a client SSL certificate:

    Screen Shot 2015-10-07 at 09.36.34.png

    Note Mock key password is the same as the -keypass param you supply when creatin the java key store.

     

    Hope this helps,

    Cheers,

    Rupert 

    • testhrishi's avatar
      testhrishi
      Frequent Contributor

      Yes, thank you. Actually I wonder why do I need to restart the soapUI for settings to take effect?

       I observed the settings were also sensitive to certstore extensions such as *.pk12, *.jks etc...

      I was expecting it to find the certs with just the name of cert store.

      It all worked out in the end

      • rupert_anderson's avatar
        rupert_anderson
        Valued Contributor

        Ah, yes! From memory I did have to restart SoapUI to get it to pick up the changes, minor bug I guess...

        I'm glad it all worked out anyway - If you're happy to, please can you mark the issue as solved so that others may follow the tips etc?

        Thanks,

        Rup