Skip to Content
HostWall

HTTPS certificates

How HostWall gets and renews Let's Encrypt certificates automatically, how to check them, and staging and custom ACME servers.

HostWall gets and renews HTTPS certificates for your sites automatically, from Let's Encrypt, at no cost. There's nothing to configure for a normal setup.

How it works

  1. When you add a site, HostWall asks Let's Encrypt for a certificate for its domain and every alias.
  2. Let's Encrypt checks that you control the domain by requesting http://<domain>/.well-known/acme-challenge/... on port 80. HostWall answers that request itself (the HTTP challenge).
  3. The certificate is stored in <data_dir>/certs and used on port 443. Plain http:// requests are then redirected to https:// with a 308 redirect.
  4. Certificates are renewed automatically about 30 days before they expire.

A site gets a certificate when its tls setting is auto (the default), HTTPS isn't turned off server-wide, and its domain is a public name. IP addresses, localhost and names ending in .local, .lan, .internal, .test, .home.arpa and similar are served over plain HTTP. Full rules: tls.

Checking the status

  • Sites page: each site shows its certificate state.
  • Overview page: a "Needs attention" banner appears when a certificate fails.
  • Settings page: lists every certificate with its expiry date.
  • Log: sudo journalctl -u hostwall | grep -i certificate shows certificate ready or certificate failed with the reason.

Your email address

Optionally, give Let's Encrypt an email address for important notices about your account:

tls:
  email: you@example.com

tls settings are read at startup: restart HostWall after changing them (sudo systemctl restart hostwall).

Testing with the staging server

Let's Encrypt limits how often you can fail validation or request duplicate certificates. While you try out a new setup, use its staging server, which has much higher limits:

tls:
  staging: true

Staging certificates aren't trusted by browsers. When everything works, remove staging and restart.

Another ACME server

To use another ACME certificate authority (for example a private step-ca on your network), set its directory URL:

tls:
  ca: https://ca.internal:9000/acme/acme/directory

Serving a site without HTTPS

Set tls: "off" on the site, for example when another proxy or Cloudflare Tunnel in front of HostWall handles HTTPS. To turn HTTPS off for every site, set server.https: "off".

Not supported yet

  • Wildcard certificates and the DNS challenge (planned for v0.2).
  • Uploading your own certificates (planned for v0.2).

When a certificate isn't issued

The usual causes are DNS not pointing at the server, port 80 blocked by a firewall, Cloudflare redirecting the challenge, or rate limits. See Certificate not issued and Running behind Cloudflare.

Edit this page on GitHub

On this page