hassanayoub85
Hi,
Let’s Encrypt certificates require a public domain and accessible DNS records, so they won’t work directly with local domains like mydomain.local. That’s why you’re seeing the "insecure" warning.
A simple and effective solution is to use an Ngrok tunnel. Ngrok creates a secure, publicly accessible URL for your local website, which you can use to obtain an SSL certificate.
Here’s how to set it up:
- Install Ngrok: Download and install from ngrok.com.
- Start a tunnel: Open your terminal and run:
ngrok http 80 # your exposed port i.e. 8000,5000,8080
- Access your public URL: Ngrok will provide a secure
https:// URL that you can use to access your local site.
Here’s a quick demo of how it works:

With this method, your site will always have a valid SSL certificate via Ngrok’s secure tunnel.
Let me know if you hit any snags, happy to help!