SSL Certificate Expired Test

This section gets you kickstarted with a 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

Call JavaScript Test Editor

2. Click “New JavaScript Test”

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”

Define New JavaScript Test

3. Customize the Test

Modify:

  • serverHost
  • serverPort
  • warnExpiredCertificateHoursBefore

Customize the Test

4. Verify the Test

Click “Save & Execute”: Save and Execute

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

Click “Start Test Job”: Verify Test

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: Verify Test

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

5. Add the Test to Synthetic Monitoring

Navigate to Synthetic Monitoring: Synthetic Monitoring

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

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

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

Select the Test: Synthetic Monitoring

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

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

Synthetic Monitoring

6. Configuring Alert Devices for Synthetic Monitoring

Navigate to “Alert Groups & Devices” and Add Alert Devices: Synthetic Monitoring Alert Devices

Then Add an Alert Group: Synthetic Monitoring Alert Devices

Then Assign Alert Devices to the Alert Group: Synthetic Monitoring Alert Devices

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

Synthetic Monitoring Alert Devices

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


Note: This test can be extended in a few steps so that any SSL server can be tested with the same (generic) test.
See the JavaScript Tests documentation at User Input Fields.