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
- When you add a site, HostWall asks Let's Encrypt for a certificate for its domain and every alias.
- 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). - The certificate is stored in
<data_dir>/certsand used on port 443. Plainhttp://requests are then redirected tohttps://with a308redirect. - 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 certificateshowscertificate readyorcertificate failedwith the reason.
Your email address
Optionally, give Let's Encrypt an email address for important notices about your account:
tls:
email: you@example.comtls 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: trueStaging 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/directoryServing 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.