-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Describe the bug
Attempting to connect to database with these options fail with error: "The certificate used to secure the TLS connection is invalid: Bad resource ID"
tls: {
enforce: true, // Set this to false if using localhost
caCertificates: [await Deno.readTextFile('./pg-server-ca.pem')],
},
However, this simple connection test succeeds:
const conn = await Deno.connectTls({
hostname: Deno.env.get('PG_HOST'),
port: 5432,
caCerts: [await Deno.readTextFile("pg-server-ca.pem")],
});
To Reproduce
Try the code/steps above.
Expected behavior
PG should connect, but it does not.
Metadata
Metadata
Assignees
Labels
No labels