Not login my from local machine using railway login
frappe-mocha
PROOP

7 months ago

I have tried disabling SSL verification as my laptop uses Zscaler VPN

I have tried adding my ZScaler pem file as well but still Im facing the same error.

NODE_TLS_REJECT_UNAUTHORIZED=0 railway login

> Open the browser? Yes

Failed to fetch: error sending request for url (https://backboard.railway.com/graphql/v2)

Caused by:

0: error sending request for url (https://backboard.railway.com/graphql/v2)

1: client error (Connect)

2: invalid peer certificate: UnknownIssuer

PS : I know this has already been discussed but I'm still facing the issue even applying all the solutions.

I can see in my account securities that my login attempts are getting logged.

Attachments

$10 Bounty

1 Replies

youkamii
FREETop 5% Contributor

15 days ago

NODE_TLS_REJECT_UNAUTHORIZED=0 does not affect the Railway CLI's HTTPS client. The current Railway CLI is a native Rust program, not a Node.js request, and it is built to use native operating-system root certificates. The error therefore means the Zscaler root CA is not trusted by the certificate store that this CLI process is reading.

Do not disable certificate verification. Install only the genuine Zscaler root certificate supplied by your organization's IT team into Windows' Trusted Root Certification Authorities store.

For a per-user installation, an administrator-approved certificate can be imported with PowerShell:

Import-Certificate `
  -FilePath 'C:\path\to\ZscalerRootCA.cer' `
  -CertStoreLocation 'Cert:\CurrentUser\Root'

Then close every terminal, open a new one, and verify the TLS path before logging in:

Get-Command railway -All
railway --version
curl.exe -I https://backboard.railway.com/graphql/v2
railway login --browserless

The curl.exe request may return a non-200 HTTP status because it is not a GraphQL POST; the important result is that TLS completes without UnknownIssuer.

The official Railway CLI repository shows that the CLI uses rustls-tls-native-roots, and documents browserless login:

If you are actually running the command inside WSL, importing the CA into Windows is not enough. WSL has its own trust store; copy the IT-provided CA into /usr/local/share/ca-certificates/ and run sudo update-ca-certificates, then retry from a new WSL shell.

If the OS trust store contains the CA and the error remains, ask IT whether Zscaler is sending the complete root/intermediate chain for backboard.railway.com. Do not post the company certificate chain, Railway token, pairing code, or account details in this public thread.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...