mkcert alternatives on Mac: local HTTPS tools compared

mkcert, Caddy, Portless, Laravel Herd and Localfox compared for local HTTPS on a Mac.

mkcert is the usual first step to local HTTPS. It makes certificates, and that is all it does. You still wire them into every project, and the address still has a port. This page compares mkcert with the tools that go further. I make Localfox, so I say where it fits and where it does not. Facts about other tools come from their own documentation, checked in November 2026.

At a glance

ToolPriceInterfaceAddressGood at
mkcertFree, open sourceTerminalYour choice, with a portTrusted certificates for any name, on any OS.
Caddy by handFree, open sourceTerminal and config fileYour choice, no portA full reverse proxy with its own local CA.
PortlessFree, Apache-2.0Terminal (npm)https://name.localhostNamed HTTPS URLs from a dev script, on macOS, Linux and Windows.
Laravel HerdFree, paid Pro tierMac appname.testPHP and Laravel sites, with HTTPS through herd secure.
LocalfoxFreeMenu bar app and dashboardhttps://name.localhostStarts dev servers and keeps one HTTPS address per project.

mkcert

Run mkcert -install once, then mkcert wishfox.localhost per project, and point your dev server at the two files it writes. It is small, reliable and scriptable. It does not run a proxy, so you keep the port, and it does not start anything. Node, Bun and Deno need NODE_EXTRA_CA_CERTS to trust it. The HTTPS on localhost guide shows the full setup with Vite.

Caddy by hand

Caddy issues certificates from its own local authority and proxies a name to a port:

caddy reverse-proxy --from wishfox.localhost --to localhost:5173

Run caddy trust once to trust its authority. You get an address with no port. You also own the config, one entry per project, and you update the target port by hand when the server moves. Localfox uses Caddy inside, so the HTTPS part is the same.

Portless

Portless is an npm CLI from Vercel Labs. Prefix your dev command, for example portless run next dev, and it serves the app at https://myapp.localhost. It assigns a free port through the PORT variable and runs its own proxy and authority. It works on macOS, Linux and Windows and needs Node.js 24 or later. It has no GUI, and a server must read PORT for the routing to work.

Laravel Herd

Herd is a Mac app for PHP development. It serves each site in your parked folders at name.test, and herd secure adds HTTPS. It is the natural choice for Laravel and other PHP projects. For a Node or Python dev server it is not the main use case.

Localfox

  • Detects the framework, package manager and dev command, and starts the server for you.
  • Finds the port the server actually opened and serves it at https://name.localhost, with no port. The address survives a port change.
  • Runs a bundled Caddy behind a helper you approve once. Its certificate authority is its own, and uninstalling with --zap removes it.
  • Sets NODE_EXTRA_CA_CERTS for every server it starts.
  • Shows logs, the last request status and startup errors per project. Lists git worktrees, such as the ones coding agents create, each with its own domain.
  • Gives a domain to a port it did not start, such as a Docker container. Shares a service through a Cloudflare or SSH tunnel when you choose.

Where Localfox does not fit

  • It needs macOS 15 or later and an Apple Silicon Mac.
  • It needs a one-time helper approval and your password to trust its authority.
  • It serves .localhost names only, not .test or a custom domain.
  • If you only need a certificate for one project, mkcert is less to install.

Which should you pick

  • You need a certificate and nothing else: mkcert.
  • You want a proxy you configure yourself: Caddy.
  • You want named HTTPS URLs from the terminal, or you work on Linux or Windows: Portless.
  • You build PHP sites: Laravel Herd.
  • You want your Mac to start each project and keep one HTTPS address for it: Localfox.
brew install --cask xergic/tap/localfox