HTTPS and SSL Certificates
To record HTTPS requests using the Eggplant Proxy Recorder, you must have a root certificate that is installed and trusted.
Problems with Recording
If the root certificate is not installed or trusted, your browser displays messages such as There is a problem with this website's security certificate. You can continue to the website, but any requests sent using HTTPS won't be recorded, and won't be sent when a virtual user runs the generated script. If your System Under Test relies on HTTPS, you must rectify this issue.
Mozilla Firefox displays This Connection is Untrusted, and Google Chrome displays Cannot connect to the real...
Mozilla Firefox requires extra steps after the root certificate has been installed and trusted.
The Eggplant Proxy Recorder detects when HTTPS traffic is being sent without a valid root certificate. You have the option to install and trust the root certificate.
If HTTPS traffic is still being detected, but there is no valid root certificate, the Install/Uninstall root certificate button on the Eggplant Proxy Recorder turns red.
Installing and Trusting the Root Certificate
Click Yes on the The root certificate for capturing HTTPS traffic is not installed window, or click Install/Uninstall root certificate on the Eggplant Proxy Recorder.
What happens next depends on any existing root certificates.
The root certificate is already installed and trusted.
If you click Yes, a message from the Root Certificate Store appears, confirming the deletion of the existing certificate.
The root certificate is already installed but NOT trusted.
If you click Yes, the untrusted root certificate is removed without the need for confirmation.
Installing and trusting a new root certificate
In every case, a message from the Root Certificate Store appears, confirming the installation of the new root certificate.
Checking the Root Certificate
To check the root certificate:
- Click the Start button, then type certmgr.msc to open the Windows Certificates Manager.
- In the Certificates tree, expand the Personal folder, then click the Certificates folder.
If the root certificate is not installed, it doesn't appear in this list.
- Double-click the Eggplant Performance Proxy Recorder certificate to open the Certificate Properties window.
If the root certificate is installed and trusted, it appears in the list within Trusted Root Certification Authorities.
Extra Steps for Mozilla Firefox
Perform these steps after the root certificate has already been installed and trusted.
- Click the Start button, then type certmgr.msc to open the Windows Certificates Manager.
- In the Certificates tree, expand the Trusted Root Certification Authorities folder, then click the Certificates folder.
Note: If the root certificate is not installed, it will not appear in this list.
- Select the Eggplant Performance Proxy Recorder certificate.
- On the Action menu, click All Tasks, then click Export.
- Export the certificate as a .cer file, and save it to a directory of your choice.
- Open the Mozilla Firefox Options window.
The remaining steps vary depending on the version of Mozilla Firefox you are using.
- Click the Advanced tab, then click the Certificates tab.
- Click View Certificates. The Certificate Manager window appears:
- Click Import, and navigate to the .cer file you exported earlier.
- Select Trust this CA to identify websites, then click OK.
The Eggplant Proxy Recorder can now record HTTPS traffic with Mozilla Firefox.
Solutions to Certificate Problems
The Eggplant Performance Proxy Recorder installs and trusts the root certificate automatically. This automatic step might not work in environments that require a private key to install the certificate. If this problem occurs, you can manually export the proxy certificate from the recorder, then import it into the certificate store.
The Eggplant Performance Proxy Recorder
If you run into a problem, do the following:
- Click the Export the Proxy Certificate button on the Eggplant Performance Proxy Recorder to export the proxy certificate.
- Select the PFX option if you need to manually install the certificate onto this machine, then click OK.
- Click Open to save the file to the default desktop location. Click OK to clear the Root certificate exported successfully message.
- Double-click the eggPlantPerformanceRootCertificate.pfx file on your desktop to open the Certificate Import Wizard.
- Make sure Current User is selected, then click Next. The File to Import dialog box opens.
- Verify that the path and file name point to the eggPlantPerformanceRootCertificate.pfx file on your desktop, then click Next. The Private key protection dialog box opens.
- Click Next. The Certificate Store dialog box opens.
- Select Place all certificates in the following store, then click Browse. The Select Certificate Store dialog box opens.
- Select Trusted Root Certification Authorities, then click OK.
- In the Certificate Store dialog box, click Next, then click Finish to complete the certificate import. You should see a message telling you that the import was successful. Click OK to clear that message.
After you complete the above steps, the certificate is properly installed and trusted.