Forum Discussion

gordillo_ramon's avatar
gordillo_ramon
Contributor
15 years ago

Loading multiple keystores does not work

Hi.

In our project, we need to use different SSL keys for each teststep, so we have built a keystore per key, and we are using the code:

SoapUI.getSettings().setString( SSLSettings.KEYSTORE, "..." )
SoapUI.getSettings().setString( SSLSettings.KEYSTORE_PASSWORD, "..." )

Before every request, but for the second and following requests, the key from the first keystore loaded is the one sent.

Is it any way to "unload" the key, and/or different way to set the keystore per request to get the expected behavior?

Thanks in advace.

Regards.
Ramon
  • Update:

    We have seen that the restriction is in a factory when creating the socket. If different endpoint is used, we can set different SSL certificates, but the problem is when we should reuse the seame connection, because the SSL is in a singleton.

    Can anyone point to a solution where we can reload this socket SSL configuration?

    Regards.