We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With deno-postgres, I can specify a .crt file (e.g., supabase.crt), and sslmode=require works (tested just now).
deno-postgres
.crt
supabase.crt
sslmode=require
Is this an option for Postgres.js?
Postgres.js
The text was updated successfully, but these errors were encountered:
Yes indeed it is, just use caCerts options as specified in the deno docs in your ssl object like this:
const sql = postgres(url, { ssl: { caCerts: [await Deno.readTextFile('./cert.pem')] } })
Sorry, something went wrong.
BTW, in Node.js you can use { ssl: { ca: [ fs.readFileSync('server-cert.pem') ] }}, see https://nodejs.org/api/tls.html
{ ssl: { ca: [ fs.readFileSync('server-cert.pem') ] }}
node:
No branches or pull requests
With
deno-postgres
, I can specify a.crt
file (e.g.,supabase.crt
), andsslmode=require
works (tested just now).Is this an option for
Postgres.js
?The text was updated successfully, but these errors were encountered: