Free SSL on Railway, Render and Fly.io
Free SSL on Railway, Render and Fly.io is automatic once DNS is right. The platform issues and renews the certificate for your custom domain, and you never upload a file. What you control is DNS, and DNS is where nearly every failed setup lives.
Railway
- Open the service, then Settings, then Networking, and add the custom domain.
- Railway shows the record to create: a CNAME for a subdomain, or an A record or ALIAS for the apex.
- Create the record at your DNS provider and wait for propagation, checked with the DNS lookup.
- Railway validates and issues the certificate, usually within minutes of the record resolving.
Railway's target values change occasionally. Always copy the record from the dashboard rather than from a guide, including the trailing dot some providers require.
Render
- In the service, open Settings, then Custom Domains, and add the hostname.
- For a subdomain, create the CNAME Render shows. For the apex, Render expects an A record or a provider that supports ALIAS or ANAME.
- Keep the record DNS-only if you use Cloudflare, or set the proxy to Full (Strict) after issuance.
- Render issues the certificate once it can see the record, and renews it automatically.
Fly.io
- Run fly certs add example.com in the app directory, or add the hostname in the dashboard.
- Fly returns the A and AAAA records to create, plus a TXT record used for validation.
- Create all three. The AAAA record matters: Fly validates over IPv6 and a missing AAAA stalls issuance.
- Run fly certs show example.com to see validation status and the exact record it is waiting for.
Free SSL on Railway and Render: why it stays pending
- A proxy in front. With Cloudflare's orange cloud on, the HTTP-01 challenge can be answered by Cloudflare instead of your app. Set the record to DNS only during issuance, or use Full (Strict) so the challenge passes through.
- A stale AAAA record. Let's Encrypt prefers IPv6. An AAAA record pointing at the previous host sends validation to a machine that no longer serves the app.
- A CAA record. If your domain publishes CAA records naming only one authority, issuance from another is refused. Check with the CAA checker.
- An apex on a provider without ALIAS support. A bare A record pinned to one anycast IP breaks when the platform rotates addresses. Move DNS to a provider that supports ALIAS or CNAME flattening.
- Conflicting records. Two A records for the same name, or a wildcard plus an explicit record, can split traffic and fail validation.
Verify from outside
dig +short A example.com
dig +short AAAA example.com
dig +short CNAME www.example.com
dig +short CAA example.com
Then check the live handshake with the SSL Checker: issuer, SAN list, chain completeness and days remaining. A platform certificate that shows a complete chain in Chrome can still be missing an intermediate for API clients, which is why the checker tests the chain rather than the padlock.
Free SSL on Railway, Render and Fly.io: when you need your own
On a platform, the managed certificate is usually the right answer. Issue your own only when the hostname must also work somewhere the platform does not terminate TLS, when you need a wildcard across services, or when you are migrating and want the certificate to exist before DNS moves. In those cases a browser-issued certificate avoids waiting for a platform job.
One practical note: platform certificates are renewed automatically but not instantly visible in every monitor. Keep an external expiry check on the custom domain so a failed renewal shows up as a warning rather than an outage.
Related reading: automatic HTTPS with Caddy and the AWS Certificate Manager guide.
Frequently Asked Questions
Do these platforms charge for TLS certificates?
No. Railway, Render and Fly.io issue certificates for custom domains as part of the platform. You pay for compute, not for the certificate.
Can I use a Cloudflare Origin certificate on Railway or Render?
Not usefully. The platform terminates TLS itself, so it needs a publicly trusted certificate, which it issues. Origin CA is for origins behind the Cloudflare proxy.
Why does www work and the apex fail?
The two names need different record types. The apex cannot be a CNAME unless the provider supports ALIAS or flattening, so it usually needs an A record or an ANAME.
Why does the apex domain fail when www works?
The two names need different record types. The apex cannot be a CNAME unless the provider supports ALIAS or flattening, so it usually needs an A record or an ANAME.
✅ 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.