SSL with CA certificates

To use SSL with CA certificates with Mobile Center and UFT, you must first install your CA certificates on your computer.

Note: If you are using self-signed certificates, the certificates are installed by default and this topic is not relevant.

Install your CA certificate on the UFT machine

Install CA certificates on the UFT machine once for the Mobile Center server, and once for each connector machine.

On the UFT machine:

  1. Open Internet Explorer and navigate to the Mobile Center server or connector machine using the following syntax:

    https://<server_name_or_IP_address>:<port>

    The default port is 8800, but you can modify this during the Mobile Center installation.

    Internet Explorer may display a message about security issues with the website's security certificate.

  2. Open the Internet Explorer Options dialog box (ToolsInternet Options), and add the URL to the list of trusted sites.

    1. In the Security Zone, select Continue to this website (not recommended).

    2. On the page that opens, click: Certificate error > View certificates > Install Certificate.

    3. Install the certificate using the wizard.

      Select Place all certificates in the following store, and then click Browse.

    4. Select Trusted Root Certification Authorities, and then complete the wizard.

      If a security warning appears, click Yes to confirm the installation.

  3. In Internet Explorer, refresh the Mobile Center server or connector machine URL, and verify that there are no SSL certificate-related errors.

    Note: In most cases, SSL-related errors are generated by the operating system.

  4. In the UFT Options dialog, enter your Mobile Center server address and port, and select Use SSL. Click Test Connection to verify that UFT can now successfully connect to the Mobile Center server.

    For more details, see Connect to Mobile Center.

Install your CA certificates on a Jenkins machine

If you are running your UFT tests from Jenkins and are using CA certificates with SSL, you must install the certificates on the UFT computer and on the Jenkins computer.

For more details, see Install your CA certificate on the UFT machine.

On the Jenkins machine:

Export the CA certificate

  1. Open Internet Explorer, and browse to the HTTPS URL of the secure Mobile Center server.

    When prompted about the website's security, click Continue to this website.

  2. Click the Certificate error in the title bar, and then click View certificates.

  3. In the Certificate dialog box, click the Details tab, and then click Copy to File.

  4. In the export wizard, select the DER encode binary X.509 option, and then click Next.

  5. Specify a name for the certificate, for example, mc.cer.

    Click Next and then Finish.

Install the CA certificate

Run the following script in the <jenkins installation>\jre\bin folder:

keytool.exe -import -file "{cer file path}" –keystore "{jenkins_installation_path}\jre\lib\security\cacerts" -alias mc -storepass changeit –noprompt

For example:

keytool.exe -import -file "C:\Users\Administrator\Desktop\mc.cer" -keystore "C:\Program Files (x86)\Jenkins\jre\lib\security\cacerts" -alias mc -storepass changeit -noprompt

See also: