SSL Certificate Expired Test
This example shows how to create an SSL Certificate Expired Test and configure it as a Synthetic Monitoring Job. If the certificate is about to expire or has already expired, you will receive an alert message.
You will also receive an alert message if the SSL server is not reachable - and depending on the Configuration of the Monitoring Job: you will receive an alert message if the sum of the TCP connect time and the SSL handshake time (in milliseconds) exceeds a configurable threshold.
Pre-Requisites
To configure and execute the test you’ll need:
- Access to the RealLoad portal. If you haven’t signed up, do so first Sign Up
- Approx. 5..10 minutes of your time to create a SSL Certificate Expired Test and another 10 minutes to configure the Synthetic Monitoring Job
- A cup of tea or coffee
1. Call the JavaScript Editor from the Main Menu

2. Click “New JavaScript Test”

Then:
- Select a Project (or create a new one)
- Create a new Resource Set in the Project
- Select the corresponding Template
- Enter a JavaScript File Name (any file name ending with *.js)
- Enter a Test Name
- Click “Define New JavaScript Test”

3. Customize the Test
Modify:
- serverHost
- serverPort
- warnExpiredCertificateHoursBefore

4. Verify the Test
Click “Save & Execute”:

Enable “Display Log Files after Execution” and then click “Execute Load Test Job”:

Click “Start Test Job”:

Wait a few seconds until the test is complete. Then close the notification on the left and click on “users.out” in the log files:

If no error is reported in the log, your test was successful:

5. Add the Test to Synthetic Monitoring
Navigate to Synthetic Monitoring:

Click the “Configuration” tab and then click “Add Monitoring Group”:

Enter a “Monitoring Group Title” and then click “Add Monitoring Group”:

Enable the Monitoring Group execution, click “Monitoring Jobs” and then click “Add Monitoring Job”:

Select the Test:

Optionally, you can also configure performance thresholds. Then click “Define Monitoring Job”:

Go to the dashboard. It may take a few minutes for the monitoring job to run for the first time:


6. Configuring Alert Devices for Synthetic Monitoring
Navigate to “Alert Groups & Devices” and Add Alert Devices:

Then Add an Alert Group:

Then Assign Alert Devices to the Alert Group:

You can also check which Alert Devices are assigned to an Alert Group:


Finally, navigate to “Configuration” and add (assign) the Alert Group at the Monitoring Group level or at the Monitoring Job level:
