📖 L7 of 8 · M4⏱ 5 min

HTTPS certs & MagicDNS

How Tailscale gets a real Let's Encrypt cert for your-device.tail-abc.ts.net, and how to use one in your own apps.

1Where the certs come from

When you turn on MagicDNS + HTTPS in your tailnet (admin console → DNS → enable "HTTPS Certificates"), Tailscale provisions Let's Encrypt certificates for every device.tail-abc.ts.net hostname.

Tailscale Serve uses these automatically. So do Funnel-exposed services.

2Get a cert for your own app

If you're running your own web server (not via Serve) and want a Tailscale cert:

sudo tailscale cert your-device.tail-abc.ts.net

Outputs your-device.tail-abc.ts.net.crt and .key in the current directory. Configure your web server (nginx, Caddy, Traefik) to use them.

Certs auto-renew via Tailscale's automation.

3The "tailnet name" matters

Your tailnet has an auto-generated name like tail-abc123.ts.net. You can rename it (admin console → DNS → Tailnet name) to something you'll remember, like your-tailnet.ts.net. After this, devices are laptop.your-tailnet.ts.net.

Existing certs keep working with the old name; new certs use the new name. Renaming is cheap.

4Why this is unusual

Normally getting a public TLS cert means owning a domain, proving you control it, and running a renewal robot. Tailscale skips all of that — they own ts.net and provision sub-certs for tailnet devices.

The aha: internal services with valid certs used to be a sign of mature infrastructure. With Tailscale, every tinkerer gets it for free.

🧠Knowledge check

Three quick questions

Q1.What domain do tailnet certs cover?
Q2.You want your local Caddy reverse proxy to use a Tailscale cert. How?
Q3.You renamed your tailnet from tail-abc.ts.net to your-tailnet.ts.net. What happens to existing certs?
3 / 3
Last toolbox lesson coming up.