Node.js SELF_SIGNED_CERT_IN_CHAIN 500 error
I am running fastify on Node.js, and I am trying to add an authenticated router to /admin
{
"statusCode": 500,
"code": "SELF_SIGNED_CERT_IN_CHAIN",
"error": "Internal Server Error",
"message": "self-signed certificate in certificate chain"
}
5 Replies
Project ID:
13314144-b328-475d-867f-a0337164519f
13314144-b328-475d-867f-a0337164519f
If i just turn off the cookie session store options it works.
https://github.com/expressjs/session/issues/281
Above seems related. But they talk about editing the nginx config. I assume Railway uses some proxy service internally to expose servives publically
GitHub
unable to use secure cookies · Issue #281 · expressjs/session
I am trying to set secure cookies, it does not work at first try. I am using secret: sessionSecret, resave: false, saveUninitialized: true, cookie: { secure: true, httpOnly: true, domain: 'bein...
Solution
I fixed it by disabling SSL on the connection between session store
that would be the proper solution, glad you where able to solve it!