3 hours ago
Hello Railway Support,
We are experiencing two issues with our existing production PostgreSQL service, which uses ghcr.io/railwayapp-templates/postgres-ssl:17.
Issue 1: PostgreSQL TLS certificate verification
When connecting from our external VPS using sslmode=verify-full, the PostgreSQL server reports:
could not accept SSL connection: tlsv1 alert unknown ca
Issue 2: Railway dashboard Console and Files access
The dashboard Console remains on "Connecting" before displaying:
WebSocket connection failed
This prevents us from retrieving the public CA and server certificates.
Our Railway CLI is installed and authenticated, and our dedicated SSH public key has been successfully registered.
Could you please assist with:
- Secure retrieval of the existing PostgreSQL public CA certificate.
- Confirmation of whether the server certificate supports the public TCP proxy hostname.
- The recommended connection procedure using
sslmode=verify-full. - An authoritative method of verifying Railway's SSH gateway host identity.
- Resolving the dashboard WebSocket connection failure.
The PostgreSQL service appears Online. We need a non-disruptive solution that preserves existing production data.
Please advise whether this can be resolved without restarting the database, regenerating certificates or upgrading the deployment.
Thank you.
2 Replies
3 hours ago
The TCP proxy is a raw passthrough, so we don't terminate TLS or issue a certificate for it. The certificate your client sees is the self-signed one generated inside the postgres-ssl container. The tlsv1 alert unknown ca message in the server log means your client rejected that certificate because it doesn't trust its CA. A self-signed certificate created inside the container isn't issued for the TCP proxy hostname, so sslmode=verify-full will fail hostname matching even once the CA is trusted.
Since the Console isn't connecting, you can open a shell in the running service with railway ssh from your authenticated CLI and copy the CA and server certificate out of the container. That only reads files, so it doesn't restart the database or change its data. Once your client trusts that CA, sslmode=verify-ca checks the chain without matching the hostname.
For the dashboard Console showing "WebSocket connection failed", please share the browser and version, whether it also fails in another browser or on another network, and the UTC time of a failed attempt.
Status changed to Awaiting User Response Railway • about 3 hours ago
Railway
The TCP proxy is a raw passthrough, so we don't terminate TLS or issue a certificate for it. The certificate your client sees is the self-signed one generated inside the postgres-ssl container. The `tlsv1 alert unknown ca` message in the server log means your client rejected that certificate because it doesn't trust its CA. A self-signed certificate created inside the container isn't issued for the TCP proxy hostname, so `sslmode=verify-full` will fail hostname matching even once the CA is trusted. Since the Console isn't connecting, you can open a shell in the running service with `railway ssh` from your authenticated CLI and copy the CA and server certificate out of the container. That only reads files, so it doesn't restart the database or change its data. Once your client trusts that CA, `sslmode=verify-ca` checks the chain without matching the hostname. For the dashboard Console showing "WebSocket connection failed", please share the browser and version, whether it also fails in another browser or on another network, and the UTC time of a failed attempt.
2 hours ago
Thank you for the explanation.
Unfortunately, we need to retain sslmode=verify-full for our production application.
Our Railway CLI is installed, authenticated, and our dedicated SSH public key is registered. However, we have not established an independently verified SSH gateway host identity.
Could a Railway engineer please confirm:
- A trusted method for verifying Railway's SSH gateway identity.
- An authenticated alternative for retrieving the PostgreSQL public CA and server certificates.
- Whether a supported hostname or certificate configuration exists that allows sslmode=verify-full through the public TCP proxy.
- Whether these issues can be resolved without restarting the production database.
The dashboard WebSocket failure was observed at approximately 08:07 UTC on 27 November 2026, using Google Chrome on Windows. We have not yet tested another browser or network.
We would appreciate human technical assistance.
Status changed to Awaiting Railway Response Railway • about 2 hours ago