Home Assistant Free SSL: Let's Encrypt HTTPS Setup
Home Assistant serves plain HTTP by default. If you reach it from outside your home, or want the mobile app to connect over a trusted address, you need HTTPS with a certificate your phone accepts. The official Letsencrypt app issues one, and the HTTP server settings tell Home Assistant where to find it. This guide follows the current Home Assistant HTTP integration page and the Letsencrypt app documentation.
Two ways to get HTTPS
You can terminate TLS in Home Assistant itself, or put a reverse proxy in front of it. A proxy such as Nginx or Traefik keeps certificate handling away from the Home Assistant host. If you use one, tell Home Assistant to trust the proxy through the trusted proxies setting. This page covers the direct route.
| Method | Certificate lives in | Best when |
|---|---|---|
| Letsencrypt app | Home Assistant /ssl folder | One host, simple setup |
| Reverse proxy | The proxy | Many services on one domain |
| Cloud tunnel | The tunnel provider | No open ports |
Step 1: Pick a challenge type
The Letsencrypt app offers two challenges. The HTTP challenge needs port 80 reachable from the internet and your domain pointed at your public IP. It cannot issue wildcard certificates. The DNS challenge needs a supported DNS provider, allows wildcards and needs no open port. The app lists many providers, including Cloudflare, DuckDNS, Google and Hetzner, and a generic dns-lego option for any provider that the lego client supports. Read how DNS-01 validation works if you are new to it.
Step 2: Install and configure the app
In Home Assistant, go to Settings > Apps > Install app, find Letsencrypt and install it. Open its Configuration page. Enter your domain names, your email address and the file names for the certificate and key. A DNS example in YAML looks like this:
email: you@example.com
domains:
- ha.example.com
challenge: dns
dns:
provider: dns-cloudflare
cloudflare_email: you@example.com
cloudflare_api_key: YOUR_KEY
certfile: fullchain.pem
keyfile: privkey.pem
Each provider has its own credential keys, listed in the app's documentation. Use your own values. Then press Start. The app creates the certificates and stops when it is done. The files go to the /ssl folder. If you want to know what fullchain.pem holds, see the certificate chain guide.
Step 3: Point the HTTP server at the files
In the UI, open Settings > System > Network and find the HTTP server section. Set the SSL certificate path to /ssl/fullchain.pem and the SSL key path to /ssl/privkey.pem. Home Assistant also lets you pick an SSL profile. Intermediate v6 is the default for new installations and accepts TLS 1.2 and 1.3. Modern v6 accepts only TLS 1.3, and the documentation warns that some smart home devices and phones older than Android 10 cannot use it.
If your installation still uses a YAML file, the app's documentation shows the equivalent:
http:
server_port: 443
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
The documentation also states that after the move to UI configuration, a leftover http: block triggers a repair issue. Remove it once the settings are saved in the UI. After changing the port, update the URL in the Companion app.
Step 4: Renewal
The app does not renew by itself. It has to be started again. On each start it checks whether renewal is due, usually 30 days before expiry, and quits without change if not. The documentation suggests an automation that restarts the app every night. To force a new certificate, set force_renew: true once and then set it back, or every run will issue a new certificate and you may hit rate limits. See how to fix renewal errors for common causes.
If Home Assistant will not start
Home Assistant states that if a saved setting prevents the HTTP server from starting, such as a missing certificate file or a busy port, it falls back to the last known good configuration. If none exists, it starts on default HTTP without SSL. Check the logs, correct the paths in the Network settings and save.
Checks
Home Assistant also appears in Docker setups, covered in the Docker SSL guide. Open your domain over HTTPS from outside your network. Confirm the padlock and expiry with the free SSL checker, and keep an eye on dates using the expiry check guide.
Sources: Home Assistant HTTP integration page and the Letsencrypt app DOCS.md in the home-assistant/addons repository.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.