Tools
WHD Automatic Certificates via Let's Encrypt
This article provides steps to automate the Let's Encrypt SSL certificate in Web Help Desk.
First published date
Last published date
Overview
In Web Help Desk, the following steps explain how to automate updating the SSL certificate from Let's Encrypt. This requires modifying the Caddyfile and may require a third-party application, such as OpenSSL, to verify the certificate details, but it is not required. This applies to Web Help Desk version 2026.2.1 and above.
Product section
Resolution
For internet-facing installations, WHD NextGen can automatically obtain and renew free TLS certificates from Let's Encrypt using Caddy's built-in ACME protocol support. Caddy handles the entire certificate lifecycle — issuance, installation, and renewal — with zero manual intervention after initial setup.
This option is entirely optional. It is NOT enabled by default.
Prerequisites
|
Requirement |
Details |
|
Internet-facing server |
The WHD server must be reachable from the public internet |
|
Public DNS record |
A DNS A/AAAA record must point your domain to the server's public IP |
|
Port 80 accessible |
Required for ACME HTTP-01 challenge verification (Caddy serves this automatically) |
|
Port 443 accessible |
Standard HTTPS port for serving the certificate |
|
Valid domain name |
e.g., `helpdesk.acme.com` — cannot use bare IP addresses |
**Note:** If your WHD server is behind a corporate firewall and not accessible from the internet, this option will not work. Use a CA-signed certificate instead.
Step-by-Step Setup
Step 1 — Configure DNS
Create a DNS A record pointing your chosen domain to the server's public IP:
helpdesk.acme.com → 203.0.113.50
Verify DNS resolution:
nslookup helpdesk.acme.com
# Should return your server's public IP
Step 2 — Open Firewall Ports
Ensure the following ports are open on your firewall and forwarded to the WHD server:
|
Port |
Protocol |
Purpose |
|
80 |
TCP |
ACME HTTP-01 challenge (certificate verification) |
|
443 |
TCP |
HTTPS (serving the application) |
**Important:** Port 80 must remain open for automatic certificate renewal. Caddy automatically redirects all HTTP traffic to HTTPS — it only uses port 80 for ACME challenges and redirects.
Step 3 — Modify the Caddyfile
Edit <WHD_HOME>/conf/Caddyfile:
Change the site address from the port-based listener:
In the # ── HTTPS (main) section of the Caddyfile
# BEFORE (default):
:{$WHD_HTTPS_PORT:8443} {
To your domain name:
# AFTER (Let's Encrypt):
helpdesk.acme.com {
Change the TLS directive from explicit certificate paths:
# BEFORE (default):
tls "{$WHD_TLS_CERT}" "{$WHD_TLS_KEY}"
To automatic mode (remove arguments or delete the line entirely):
# AFTER (Let's Encrypt) — Caddy handles everything automatically:
tls
Or simply remove the tls line entirely — Caddy enables automatic HTTPS by default when a domain name is specified.
Step 4 — Update the HTTP Redirect Block
If the Caddyfile has an HTTP redirect block, update it:
In the # ── HTTP listener section:
# HTTP → HTTPS redirect (Caddy handles this automatically with domain-based config)
http://helpdesk.acme.com {
redir https://{host}{uri} permanent
}
With domain-based configuration, Caddy automatically sets up the HTTP→HTTPS redirect, so this block may not be needed.
Step 5 — (Optional) Configure Email for Expiry Notifications
Add your email to the global options block for Let's Encrypt expiry notifications:
{
email admin@acme.com
# ... other global options ...
}
Step 6 — Restart Caddy
Windows:
Restart-Service WHD-Caddy
Linux:
sudo systemctl restart whd-caddy
macOS:
sudo launchctl kickstart -k system/com.solarwinds.whd-caddy
On first start, Caddy will:
1. Request a certificate from Let's Encrypt
2. Complete the HTTP-01 challenge (Let's Encrypt verifies it can reach port 80 on your domain)
3. Install the certificate and begin serving HTTPS
4. Schedule automatic renewal (certificates renew ~30 days before expiry)
Step 7 — Verify
# Check certificate details (should show Let's Encrypt as issuer)
openssl s_client -connect helpdesk.acme.com:443 -servername helpdesk.acme.com < /dev/null 2>/dev/null | openssl x509 -noout -issuer -dates
# Expected output:
# issuer=C = US, O = Let's Encrypt, CN = R3
# notBefore=May 22 00:00:00 2026 GMT
# notAfter=Aug 20 00:00:00 2026 GMT
How Automatic Renewal Works
- Caddy checks certificate expiry daily
- Renewal is attempted ~30 days before expiration
- Renewal uses the same ACME HTTP-01 challenge (port 80 must remain accessible)
- No service restart required — Caddy hot-swaps the certificate
- Certificate state is stored in Caddy's data directory:
- **Linux:** `/var/lib/caddy/`
- **Windows:** `%APPDATA%\Caddy\`
Troubleshooting
|
Issue |
Cause |
Resolution |
|
Certificate not issued |
Port 80 blocked |
Open port 80 on firewall; verify with `curl http://helpdesk.acme.com` from external host |
|
ACME challenge failed |
DNS not resolving |
Verify `nslookup helpdesk.acme.com` returns correct IP |
|
Rate limit exceeded |
Too many requests to Let's Encrypt |
Wait 1 hour; use Let's Encrypt staging for testing |
|
Certificate not renewing |
Port 80 closed after initial setup |
Re-open port 80; check Caddy logs |
Checking Logs
# Linux
journalctl -u whd-caddy --since "1 hour ago"
# Windows
Get-Content "C:\Program Files\WebHelpDesk\log\caddy-access.log" -Tail 50
# All platforms — Caddy log location
<WHD_HOME>/log/caddy-access.log
FAQ
Q: Is the Let's Encrypt option mandatory?
A: No. It is entirely optional. The default installation uses a self-signed certificate with no internet access required.
Q: What happens if renewal fails?
A: Caddy attempts renewal 30 days before expiry and retries daily. If all attempts fail, the existing certificate remains valid until its expiry date (90 days from issuance). Check `caddy-access.log` for error details.
Q: Can I use standard ports (443/80) instead of 8443/8080?
A: Yes. Set `WHD_HTTPS_PORT=443` and `WHD_HTTP_PORT=80` in `conf/whd.env`. On Linux, this requires running Caddy as root or using `setcap 'cap_net_bind_service=+ep'` on the Caddy binary.