Context:
Connection works if rejectUnauthorized
is set to false
const sql = postgres({
// host, port, username, password, etc..
ssl: { ca, cert, key, rejectUnauthorized: false },
});
Not sure what's the right approach to fix it yet, but putting it out here in case someone encounters it.
Didn't encoutered this one on DigitalOcean's PostgreSQL instances.