8 months ago
We are trying to install a custom SSL certificate for our domain. For this process, we need a Certificate Signing Request (CSR) generated from the hosting server.
Since our application is hosted on Railway, could you please guide us on how we can generate a CSR for our domain from Railway? If CSR generation is not supported directly, please let us know the recommended method to install a custom SSL certificate for a domain hosted on Railway.
Domain: harmfulcontentprevention.com
2 Replies
Status changed to Awaiting Railway Response Railway • 8 months ago
8 months ago
Your certificate can't be issued because your apex domain is not using a CNAME record. It appears you're using an ALIAS or ANAME record, which Railway does not support for certificate issuance.
You have two options:
- Switch your DNS provider to Cloudflare, which supports CNAME flattening at the apex. This lets you set a CNAME on the root domain.
- Use a subdomain (e.g.
www) instead of the apex domain.
To fix this: remove the custom domain from your service in the Railway dashboard, then re-add it. The dashboard will show the required CNAME and TXT records to configure in your DNS provider.
Railway handles SSL certificates automatically. There is no need to generate a CSR or install a custom certificate. Once your DNS is configured correctly, your certificate will be issued automatically.
Status changed to Awaiting User Response Railway • 8 months ago
brody
Your certificate can't be issued because your apex domain is not using a CNAME record. It appears you're using an ALIAS or ANAME record, which Railway does not support for certificate issuance. You have two options: 1. Switch your DNS provider to Cloudflare, which supports CNAME flattening at the apex. This lets you set a CNAME on the root domain. 2. Use a subdomain (e.g. `www`) instead of the apex domain. To fix this: remove the custom domain from your service in the Railway dashboard, then re-add it. The dashboard will show the required CNAME and TXT records to configure in your DNS provider. Railway handles SSL certificates automatically. There is no need to generate a CSR or install a custom certificate. Once your DNS is configured correctly, your certificate will be issued automatically.
4 hours ago
Railway does not support generating CSRs or installing custom SSL certificates
Add your domain under Service Settings → Networking → Custom Domain and configure the required DNS records Railway will automatically issue and renew a free Let’s Encrypt certificate
If you need your own certificate use Cloudflare or another reverse proxy that supports custom SSL certificates