mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Add PGSSLMODE=noverify support to opt-out of rejecting self-signed certs
This commit is contained in:
parent
afd14cb5f9
commit
6937a2428b
@ -34,6 +34,8 @@ var useSsl = function () {
|
||||
case 'verify-ca':
|
||||
case 'verify-full':
|
||||
return true
|
||||
case 'no-verify':
|
||||
return { rejectUnauthorized: false }
|
||||
}
|
||||
return defaults.ssl
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user