ACME & HTTPS
Built-in ZeroSSL ACME client, HTTP-01 issuance, automatic renewal and OCSP stapling.
Two config files
ACME needs conf/acme.conf for the email and ZeroSSL parameters, and acme_auto = 1 on the target site in conf/server.conf. Both are required.
[info]
acme_path = ./acme
cert_path = ./conf
email = admin@example.com
days_remain = 10
[zerossl]
server_url = https://acme.zerossl.com/v2/DV90
eab_api = https://api.zerossl.com/acme/eab-credentials-email
eab_kid =
eab_hmac_key =[default]
acme_auto = 0
acme_every_day = 7
acme_every_num = 5
[www.example.com]
acme_auto = 1Issuance flow
Scheduled trigger
httpwatchticks every 5 seconds; at the hour set byacme_every_day(valid 2–23) it starts a detached task thread.Collect domains
It walks sites with
acme_auto = 1.www.x.comexpands tox.compluswww.x.com; single-label domains get awww.prefix.Check expiry
It reads
notAfterfromacme_path/domain/cert.pemand skips when more thandays_remaindays remain.HTTP-01 challenge
The webroot is the site
wwwpath, so port 80 must be publicly reachable for that site.Download artifacts
It writes
privkey.pem,cert.pem,chain.pem,fullchain.pem; the account key isacme_path/account_key.pem.Install and reload
fullchain.pembecomes<domain>.pem,privkey.pembecomes.keyandcert.pembecomes.crtnext toserver.conf. Thenlog/restart_ssl_configtriggers an SSL_CTX rebuild and OCSP cache clear.
Renewal settings
| Key | File | Constraint / effect |
|---|---|---|
days_remain | acme.conf | Default 10, clamped to 2–89 |
acme_every_day | server.conf | Hour of day, valid 2–23 |
acme_every_num | server.conf | Domains per run, clamped to 1–30 |
cert_path | acme.conf | Read by the config parser but does not decide the output path; certificates land next to server.conf |
OCSP stapling
ocsp_intv_time defaults to 14400. Parsing clamps it to 500–86400 and runtime applies a 3600 floor; the real wall-clock interval is “ticks × 5 seconds”. Refresh reads the site certificate, obtains the OCSP URL from AIA and caches DER at temp/ocsp_domain.der. The handshake attaches the cached response via SNI.
Verify
curl -I https://www.example.com/
openssl s_client -connect www.example.com:443 -servername www.example.com </dev/null \
| openssl x509 -noout -dates
h2load -n 1000 -c 20 -m 10 --npn-list h2 https://www.example.com/Troubleshooting
| Symptom | Check |
|---|---|
| No issuance at all | Whether email is empty and site acme_auto is 1 |
| Challenge fails | Port 80 reachability; wwwpath correctness and write access |
| Certificate not updated | Whether log/restart_ssl_config was consumed and file names match the domain |
| h2 unavailable | Site http2_enable = 1 or global global_http2_enable = 1 |