HTTPS certificate

It chooses the certificate nginx presents the console with over HTTPS: self-signed (the default) or Let’s Encrypt.

The HTTPS certificate block in self-signed modeThe HTTPS certificate block in self-signed mode
The HTTPS certificate block in self-signed mode

What it is for

It chooses the certificate nginx presents the console with over HTTPS: self-signed (the default) or Let’s Encrypt.

At the top the Served certificate box shows the certificate served right now, with its origin (“Self-signed” or “Let’s Encrypt”), “Subject”, “Issuer”, “Expires” and “Names”. If nginx is not installed or the console is in direct mode, the box says so.

Self-signed (private CA)

With “Certificate” on “Self-signed (private CA)”, a private CA created by the appliance signs the console’s certificate. The certificate covers the short name, the full name, localhost and all the appliance’s IPv4 addresses; it lasts 825 days, the CA 10 years.

To stop seeing the browser’s warning, import the CA once:

  1. Press “Download CA”: you download the file argos-ca.crt.
  2. Import it among the trusted certification authorities of the operating system or of the browser on the PCs you manage the appliance from.

From then on every certificate the appliance issues itself again (for a new name, a new address or an approaching expiry) is signed by the same CA, and the browser accepts it without questions.

“Regenerate self-signed” issues a new certificate with the same CA at once. It is rarely needed: for example when a change of name did not reach the certificate. Every night (at 03:30, with a random delay of up to an hour) the appliance checks the certificate and reissues it by itself within 30 days of expiry, when the addresses change, or when certificate and key do not match.

Let’s Encrypt

The HTTPS certificate block in Let's Encrypt modeThe HTTPS certificate block in Let's Encrypt mode
The HTTPS certificate block in Let's Encrypt mode

With “Certificate” on “Let’s Encrypt” the appliance requests a publicly trusted certificate for a public name. These fields appear:

Field What it holds
“Domain” The public name that resolves to the appliance’s WAN address, for example argos.johnsmith.test. Required.
“Account e-mail” The address given to Let’s Encrypt when the appliance’s account is created, for example it@johnsmith.test. Required. Let’s Encrypt no longer sends expiry reminders: the appliance renews by itself and an error arrives by e-mail through the relay.
“Test environment (staging)” Certificates that are not trusted, with no rate limits: for trials.

There are two requirements: the domain must resolve to the appliance, and port 80 must reach it from the internet. The firewall opens port 80 when you apply the Let’s Encrypt mode.

The procedure:

  1. Choose “Let’s Encrypt”, fill in “Domain” and “Account e-mail”, press “Save”.
  2. Press “Apply” in the header and confirm within 60 seconds: the firewall opens port 80.
  3. The line under the buttons becomes “Port 80 is open in the running firewall.”. Press “Request certificate”.
  4. When it finishes the message is “Let’s Encrypt certificate issued” and the Served certificate box shows “Let’s Encrypt”.

“Request certificate” requests the certificate for the saved settings: if you changed a field without saving, the request is refused with “Save the changes first: a certificate is requested for the saved settings”.

If a publication uses port 80, the block names it: during each validation (a few seconds) new connections to the appliance on port 80 serve the validation, then the publication becomes active again by itself.

Renewals are automatic; a failed renewal, an expiring certificate and a missing Let’s Encrypt client arrive by e-mail (if notifications are on). Going back to “Self-signed (private CA)” deletes the Let’s Encrypt certificate, so that certbot stops renewing it.

If the certbot package is missing, the “Let’s Encrypt” option is disabled and the block says so (“The Let’s Encrypt client is not installed (package certbot): Let’s Encrypt is unavailable.”).

Messages

Message What to do
“Port 80 is closed in the running firewall: apply the firewall with the Let’s Encrypt mode first” Apply and confirm, then try again.
“The request to Let’s Encrypt failed” The detail says why: usually the domain does not point to the appliance or port 80 does not arrive from the internet (an upstream router, the provider).
“A Let’s Encrypt renewal is already running (Debian’s automatic one): try again in a few minutes” An automatic renewal is in progress.
“Another certificate or proxy change is running (the daily maintenance, an upgrade or a renewal): try again in a minute” Another operation on the certificates is at work.
“The proxy refused the configuration (the previous one is kept)” The console carries on with the previous configuration.
“The proxy in front of the console is down and the console answers directly (plain http): run scripts/console-setup.ts to put the proxy back in front — it applies the saved settings” The console is in direct mode: see Recovering access.

For the technician The validation is http-01 with the webroot /var/lib/argos/acme, certbot certificate argos. When a publication DNATs port 80, a separate table (ip argos_acme) sends new connections on 80 to nginx only for the duration of the validation and is removed right after. The private CA and the self-signed certificate are in /etc/edon/argos-tls/.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer