Secure the Simulator agent interface with HTTPS

By default, you use an unencrypted HTTP connection to open the user interface of the Simulator agent. With HTTPS, the Simulator agent encrypts everything you see and enter in the interface, so nobody on the network can read it. This matters most if other machines on your network can reach the interface.

This topic explains how to configure a certificate and how this changes the way you open the interface. We recommend that administrators configure the certificate.

Before you start

Get a certificate from your IT department. The Simulator agent supports the following certificate types:

  • A certificate in a Windows certificate store on the computer that runs the Simulator agent. You need the thumbprint of the certificate. This works on Windows only.

  • A certificate file in PKCS#12 format, for example a .pfx file. You need the file path and, if the file has a password, the password. This works on all platforms.

Configure the certificate

To activate HTTPS, tell the Simulator agent which certificate to use. You can do this in the settings file or on the command line:

Check the result

When the Simulator agent starts with a valid certificate, the log shows an address that starts with https. Your browser opens this address automatically. The interface is available at https://localhost:<port>/_sim/ui/.

After you configure the certificate, the following applies:

  • HTTP no longer works on this port. Replace old bookmarks with the new HTTPS address, or switch back to HTTP.

  • If the Simulator agent can't find the certificate, can't read the file, or the password is wrong, it doesn't start. It shows an error and doesn't switch back to HTTP.

  • If your browser doesn't trust the certificate, it shows a warning. Ask your IT department to add it to your trusted certificates.

Switch back to HTTP

To use HTTP again, remove the certificate from each place where you configured it:

  • If the settings file contains the certificate, delete the CertThumbprint setting, or the CertFile and CertPassword settings.

  • If you pass the certificate on the command line, start the Simulator agent without the --cert-thumbprint or --cert-file option.

What's next

Now that the interface is secure, open the Simulator agent interface to modify and run simulations.