Failed to prune sessions: Error: self-signed certificate in certificate chain

wesleydeanPRO

9 months ago

I'm getting an error in production - Failed to prune sessions: Error: self-signed certificate in certificate chain. I'm not sure if railway is using a self signed cert - in which case I need access to a certified certificate.

In my railway postgres instance I also see: "could not accept SSL connection: EOF detected"

Solved

5 Replies

9 months ago

Yes the Postgres databases Railway deploys use self-signed certificates, this is something your app will need to be able to support.


wesleydeanPRO

9 months ago

is there a path to the cert that I can reference?


wesleydeanPRO

9 months ago

I dont see any env vars that reference these


9 months ago

You would need to grab the certificates directly off the volume.


wesleydeanPRO

9 months ago

it looks like I should be good - the default way to do this is to use ssl: { rejectUnauthorized: false } with railway which I think is ok for now


Status changed to Solved brody 10 months ago


Failed to prune sessions: Error: self-signed certificate in certificate chain - Railway Help Station