Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Release notes
Changelog
Elyra
Automatic TLS (ACME / Let's Encrypt)

Automatic TLS (ACME / Let's Encrypt)

Askr can obtain and renew its own TLS certificate — the last piece of the "single binary, no proxy" story. No certbot, no cron, no nginx in front.

askr serve \
  --root /var/www/app/public \
  --worker-script /opt/askr/examples/laravel-worker.php \
  --listen 0.0.0.0:443 \
  --acme --acme-domain example.com --acme-email you@example.com \
  --acme-dir /var/lib/askr/acme

That's it: on first start Askr obtains a certificate for example.com from Let's Encrypt, serves HTTPS on :443, and renews automatically before expiry.

From a config file

[server]
listen = "0.0.0.0:443"
root = "/var/www/example.com/public"
force_https = true

[acme]
enabled = true
domains = ["example.com"]
email = "admin@example.com"
staging = true          # start here; swap to false once you see a certificate issued
askr serve --config /etc/askr/askr.toml

Every flag below has a key in [acme]. Prefer the file if you need anything that is file-only — trusted_proxies, [[site]], [cache] — because --config is the whole configuration and Askr refuses to mix the two.

How it works (and why it's prefork-safe)

The prefork model (one worker process per core, all accepting on the shared socket) makes ACME challenge routing tricky — a validation connection would hit a random worker. Askr sidesteps it:

  • The master runs a tiny HTTP-01 challenge server on --acme-http (default 0.0.0.0:80) and obtains the certificate before forking workers.
  • Workers only ever serve HTTPS on --listen from the cached cert — no port conflict, no cross-worker coordination.
  • A background thread in the master renews before expiry and then triggers a graceful rolling reload so workers pick up the new cert with zero downtime.

--acme-dir holds the ACME account, cert.pem, key.pem and a renew_at marker. Keep it on a persistent volume.

Requirements

  • Port 80 reachable from the internet at your domain (HTTP-01 validation). Askr serves the challenge there; set --listen to your HTTPS port (:443).
  • The domain's DNS must resolve to this host.
  • Run on Linux in production. Binding :80/:443 as non-root needs CAP_NET_BIND_SERVICE (see UBUNTU.md) or a port mapping (Docker).

Options

Flag Meaning
--acme Enable auto-TLS
--acme-domain <d> Domain (repeat for SAN certs)
--acme-email <e> ACME account contact
--acme-dir <path> Account + cert cache (persist this)
--acme-staging Use Let's Encrypt staging (high rate limits; untrusted) — use while testing
--acme-http <addr> Where to answer HTTP-01 challenges and redirect plain HTTP (default 0.0.0.0:80)
--acme-directory-url <url> Custom ACME directory (e.g. a private CA / Pebble)
--acme-ca-root <pem> Trust this CA root for the ACME directory (testing)

Start with --acme-staging to avoid Let's Encrypt's strict production rate limits, confirm it works, then drop the flag for a trusted cert.

Port 80 does more than challenges

The plain-HTTP listener stays bound for the whole process, not just during an issuance. With --force-https it answers every non-challenge request with a 308 to the same host, path and query — so a visitor typing http://example.com/pricing?ref=x lands on https://example.com/pricing?ref=x instead of getting a connection failure.

A challenge always wins over the redirect. Sending the ACME validator to HTTPS would make it impossible to issue a first certificate for a domain that doesn't have one yet.

Without --force-https the listener only serves challenges and 404s the rest, so turning auto-TLS on never starts redirecting traffic you didn't ask to redirect. Not using ACME at all? --http-redirect 0.0.0.0:80 (or [server] http_redirect) runs the same listener without the challenge half.

Binding a port under 1024 needs privileges. If the bind fails, Askr logs a warning and carries on serving HTTPS — a redirect is a convenience, not a reason to refuse to start.

Testing locally with Pebble

Pebble is Let's Encrypt's test ACME server. The full flow (account → order → finalize → certificate) is exercised against it in development:

# 1. run Pebble (VA_ALWAYS_VALID skips the inbound HTTP fetch; the challenge
#    server itself is covered by a unit test)
docker run -d --name pebble -p 14000:14000 -p 15000:15000 \
  -e PEBBLE_VA_ALWAYS_VALID=1 ghcr.io/letsencrypt/pebble:latest
docker cp pebble:/test /tmp/pebble-test   # grab /tmp/pebble-test/certs/pebble.minica.pem

# 2. obtain against Pebble
askr serve --root ./public --listen 127.0.0.1:8443 --workers 1 \
  --acme --acme-domain askr.test --acme-email me@askr.test \
  --acme-dir /tmp/acme --acme-directory-url https://localhost:14000/dir \
  --acme-ca-root /tmp/pebble-test/certs/pebble.minica.pem --acme-http 127.0.0.1:5002

# → /tmp/acme/cert.pem issued by "Pebble Intermediate CA", HTTPS served with it

For a full end-to-end test including the inbound HTTP-01 fetch, run Pebble without PEBBLE_VA_ALWAYS_VALID plus pebble-challtestsrv (to point the domain at the challenge server on port 80) — that needs port 80 and a Linux host.