To configure SOAtest to work with Web services deployed using HTTPS (HTTP via the SSL), you need to identify and register the certificate being used for the HTTPS connection from the server:
Close SOAtest if it is currently open.
- Identify the location of the server certificate used for the HTTPS connection.
- Ensure that this certificate’s COMMON NAME parameter contains both the server’s machine name and the subdomain (for example,
machine.company.com
). Copy the certificate to the following location:
<soatest<SOATEST_installINSTALL_dir>DIR>/plugins/com.parasoft.ptest.libs.web_<soatest<SOATEST_versionVERSION_number>NUMBER>/root/lib
This directory should contain a cacerts file in which the trusted certificates are stored.
Execute a command of the following format:
keytool -import -alias <certificate<CERTIFICIATE_alias> ALIAS> -file <certificate<CERTIFICATE_file> FILE> -keystore cacerts
For example, if your certificate file is named test.cert, you would execute the following command from the<INSTALL_DIR>/plugins/com.parasoft.ptest.libs.web_<VERSION>/root/lib
directory:keytool -import -alias serverTrustCert -file test.cert -keystore cacerts
This will import the certificate into the cacerts file with the alias "serverTrustCert
".Info icon false title keytool path must be set Before executing
keytool
commands, you must first set your path to include Java'skeytool
executable. You can use the version of the Java binaries that ship with SOAtest. To add the included Java binaries to your path, open a command line prompt and enter the following before referencing the keytool:PATH =%PATH%; <INSTALL><INSTALL_DIR>\plugins\com.parasoft.ptest.jdk.eclipse.core.web.<OS>.<ARCH>_<VERSION>\jdk\bin
- When prompted to enter a keystore password, enter
changeit
. - When asked whether you want to trust this certificate, enter
yes
. You will then see a message indicating that the certificate has been added to the keystore. - (Optional) Verify that the certificate has been added to the keystore by entering the following command, then checking the file that opens:
keytool -list -keystore cacerts
Launch SOAtest and try to access the service again.
...