Skip to content

Local HTTPS

The disposable Lima profiles use production-shaped TLS by default. Public DNS and trusted Internet certificates are covered separately in Public hosting and Certificates and domains.

Start the local HTTPS profile

make up

The command provisions the platform, obtains tenant wildcard certificates from the private Pebble CA, enables HTTPS ingress, and exports that CA root under .local/local-https/root.pem. Integration tests, Wrangler, and repository tools use that file explicitly, so the default setup does not modify the macOS login keychain or require an authorization prompt. The control VM forwards its port 443 to host port 8443, producing origins such as:

https://api.ermahgerd.localhost:8443/client/v4
https://photo-gallery.<namespace>.workers.ermahgerd.localhost:8443

macOS resolves the nested .localhost names to loopback. No custom host DNS service or disabled certificate verification is required.

Opt in to interactive browser trust only when needed:

make trust-local-https

That command manages one exact CA entry in the current user’s login keychain and may request macOS authorization. Remove it with make untrust-local-https.

make site reconverges both platform and HTTPS configuration. make status shows VM/service state and whether the exact managed CA remains trusted. Add PROFILE=fleet to use the six-node layout.

Understand lifecycle and optional trust

make down stops the VM while retaining its disks and certificates. make destroy removes any optional recorded CA trust before deleting the selected local profile and all of its state.

The trust helper records the CA fingerprint and refuses to claim a matching certificate it did not install. It never disables browser verification or modifies system-wide trust. Operator state for that exact trust relationship is kept under .local/local-https/.

The HTTPS port forward is part of the current Lima templates. If make site reports that an existing VM predates the forward, destroy and recreate that disposable profile.

What the local rehearsal proves

Local issuance uses the same certificate manager, Certbot state, deploy hook, atomic HAProxy publication, renewal, and SNI routing shape as the hosted path. Pebble replaces the public CA and supplies a private challenge service, so the test does not consume public rate limits or require a DNS provider API token.

Passing locally demonstrates protocol wiring, certificate validation, hostname rejection, and publication. The optional trust command separately enables browser use. It is not evidence that a public CA will approve a particular domain or that Internet DNS and firewall policy are correct. The hosted profile separately uses public HTTP-01 validation and can publish the administrator portal through its dedicated hardened HTTPS route.

Custom-domain behavior is exercised through the same persistent local HTTPS profile. The tenant console’s Networking → Domains workflow provides the TXT proof and routing records. See Custom domains for that workflow and Certificates and domains for the exact-host certificate lifecycle.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close