myContactCenterManual

Certificates

How myContactCenter automatically obtains and renews certificates for its host names from Let's Encrypt, how to set this up and test it, and how to see whether it works.

For encrypted connections — via the tunnel and to the web applications — the server needs a certificate for its host names. myContactCenter can obtain it from Let's Encrypt itself and renew it in good time. This is done by the myContactCenter Certificates service, which is installed with the server — see Services after installation.

Prerequisite

Before each issuance, Let’s Encrypt checks whether the applicant really controls the host names: it calls each name from the internet on port 80. Each host name must therefore reach the server from the internet on port 80.

To do this, open TCP port 80 in the Windows Firewall of the server and in any firewalls in front of it; the installation package does not create a rule for this. If you later turn off the automation, the service no longer accepts anything on port 80, and you can remove the rule again.

Names with a wildcard such as *.example.com are not possible.

Setting up

On the Certificates tab of the server configuration, group Let's Encrypt certificates:

Field Meaning Default
Obtain and renew certificates automatically turns on the automation. If off, an existing certificate is left untouched. off
Hostnames the names the certificate applies to, one per line. All of them go into one shared certificate. empty
Contact email the address to which Let’s Encrypt sends notices empty
I agree to the Let's Encrypt subscriber agreement your consent to the terms of Let’s Encrypt, which you open with Read the Let's Encrypt subscriber agreement. Without it, the service does not obtain a certificate. off
Use staging environment (test) obtains test certificates that browsers do not trust. They are stored in a separate file and do not replace the real certificate. As long as the switch is on, the real certificate is not renewed. off
Redirect HTTP to HTTPS with HTTPS redirect port redirects other requests on port 80 to HTTPS off, 443
Renew days before expiry how early the certificate is renewed, 1 to 89 days 30
Certificate file (optional) where the certificate file is located. If empty, it is located at %ProgramData%\ilogixx GmbH\myContactCenter\Certificates\certificate.pfx. empty

Proceed as follows:

  1. Enter the Hostnames and the Contact email.
  2. Read the agreement and turn on I agree to the Let's Encrypt subscriber agreement.
  3. Turn on Obtain and renew certificates automatically and Use staging environment (test). Only with these three switches can you use Test now (staging).
  4. Click Test now (staging). The Administration immediately saves the certificate settings and requests a test certificate. The service picks up the settings within a minute; until then, Status shows Test running…. If it does not respond after three minutes, No result from the certificate service - is the service running? appears.
  5. If the test was successful — the Message begins with Certificate renewed. —, turn off Use staging environment (test) and save the server configuration. The service then obtains the real certificate.

If you save with the staging environment turned on, the Administration asks whether you really want to save. If you turn on the automation without agreeing to the subscriber agreement, it does not save and reports Please read and accept the Let's Encrypt subscriber agreement before enabling certificate issuance.

Who uses the certificate

The Tunnel and the web applications take the certificate from the certificate file; they never use the test certificate. They adopt a renewed certificate by themselves, without a restart.

As long as there is no valid certificate, both use a self-issued fallback certificate that the service creates for the name of the computer and keeps up to date: certificate-selfsigned.pfx in the same folder as the certificate file. Browsers warn about it; the Web Administration can still be opened with it, however, to set up the real certificate. How the workstations trust the fallback certificate in the Tunnel is described under Distributing the access key.

The certificate service and the Tunnel run under the service account of the server; the Server Configurator gives it access to the certificates folder.

Viewing the status

The Status group shows the state — Up to date, Renewed, Failed, Not configured or Disabled —, the last Message, until when the certificate is valid (Valid until), its Thumbprint and the service’s Last report. Status of services also lists the service with its state, for example if the certificate expires soon or a renewal has failed — see The Certificates row.

The service checks about every twelve hours whether a renewal is due, and shortly after every change to the settings. After an error, it tries again after one, four and twelve hours.

    ↑ ↓ select · Enter open · Esc close