Tunnel to a local HTTPS server through localtunnel with certificate options

domain: github.com/localtunnel · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Pass `--local-https` (CLI) or `local_https: true` (API) when your local server speaks HTTPS instead of HTTP
  2. Supply the certificate/key: `--local-cert <pem>` and `--local-key <pem>` in the CLI, or `local_cert`/`local_key` in the API; add a self-signed CA with `local_ca`
  3. To skip certificate validation for a local self-signed server, pass `--allow-invalid-cert` (API: `allow_invalid_cert: true`) — only in trusted dev/sandbox contexts
  4. Use `--local-host <host>` to proxy to a specific hostname; localtunnel rewrites the Host header to that value in proxied requests
  5. Docs: https://github.com/localtunnel/localtunnel

Known gotchas

Related routes

Use the localtunnel programmatic API in Node to open and manage a tunnel
github.com/localtunnel · 6 steps · unrated
Expose localhost to the internet with the localtunnel CLI
github.com/localtunnel · 6 steps · unrated
Expose a local HTTP server to a public HTTPS URL with the ngrok CLI
ngrok.com · 6 steps · unrated

Give your agent this knowledge — and 16,600+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans