IAnswerable

How to Get Free SSL for an IP Address

22 Jul 2025

If you need a free SSL certificate for an IP address, here’s a practical trick:

🔧 Steps:

  1. Instant IP to DNS mapping using traefik.me

    • traefik.me resolves DNS automatically:
      <any-subdomain>.<your-ip>.traefik.me → your-ip
      
    • Example:
      foo.bar.253.36.126.29.traefik.me → 253.36.126.29
      
  2. Point your server at *.traefik.me

    • Configure your server to respond to a subdomain like:
      myapp.203.0.113.42.traefik.me
      
  3. 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
        }
      }
      

✅ Benefits:

Happy hacking!