How to Get Free SSL for an IP Address
22 Jul 2025If you need a free SSL certificate for an IP address, here’s a practical trick:
🔧 Steps:
-
Instant IP to DNS mapping using traefik.me
traefik.meresolves DNS automatically:<any-subdomain>.<your-ip>.traefik.me → your-ip- Example:
foo.bar.253.36.126.29.traefik.me → 253.36.126.29
-
Point your server at
*.traefik.me- Configure your server to respond to a subdomain like:
myapp.203.0.113.42.traefik.me
- Configure your server to respond to a subdomain like:
-
Use Let’s Encrypt with HTTP challenge
- Setup a reverse proxy (e.g., Caddy, Traefik, Nginx) with Let’s Encrypt:
# Example Caddyfile myapp.203.0.113.42.traefik.me { reverse_proxy localhost:8080 tls { issuer acme } }
- Setup a reverse proxy (e.g., Caddy, Traefik, Nginx) with Let’s Encrypt:
✅ Benefits:
- No DNS setup required.
- Free SSL via Let’s Encrypt.
- Works for any public IP.
Happy hacking!