Learn

Certificates: HTTPS and Let's Encrypt

Each host name needs a certificate to serve HTTPS. WAF Gateway never serves a wrong or default certificate — a host name without a certificate gets no HTTPS connection at all.

Certificates

Let's Encrypt (automatic)

  1. Go to Certificates.
  2. Enter a contact e-mail address (used by Let's Encrypt for expiry notices).
  3. Accept the subscriber agreement.
  4. Next to the host name, choose Use Let's Encrypt.

The gateway requests the certificate immediately and renews it automatically before it expires.

Requirements for Let's Encrypt:

  • The host name must point to the gateway's public IP address.
  • Port 80 must be reachable from the internet (Let's Encrypt uses HTTP-01 validation).
  • Wildcard names (*.example.com) are not supported — upload your own certificate for those.

If Let's Encrypt fails, the reason is shown on the Certificates page. Fix the cause (usually DNS or port 80) and click Request certificates now.

Upload your own certificate

  1. Click Upload a certificate.
  2. Choose a PFX file (with its password) or PEM files (the certificate, any intermediate certificates, and the private key — optionally encrypted).
  3. The gateway checks that the key matches the certificate and that it has not expired.
  4. Choose the host names this certificate is used for (only names the certificate covers are offered).

Certificates are stored encrypted in the gateway's database. The private key never leaves the machine in plain text.

Warnings

The Certificates page and the dashboard warn when:

  • A certificate expires within 30 days.
  • A certificate has expired.
  • A certificate is missing for a host name.
  • Let's Encrypt could not obtain or renew a certificate.

Example: getting a Let's Encrypt certificate for two host names

You run www.example.com and api.example.com, both pointing to the gateway.

  1. On Certificates, enter your e-mail and accept the agreement.
  2. Next to www.example.com, choose Use Let's Encrypt → the gateway requests and shows the certificate.
  3. Next to api.example.com, choose Use Let's Encrypt → the gateway requests it too.
  4. Edit each route and turn on Redirect http:// to https://.

Both sites now have valid certificates renewed automatically.