Add PGSSLMODE=noverify support to opt-out of rejecting self-signed certs

This commit is contained in:
Ben Salili-James 2020-05-05 13:24:11 +01:00
parent afd14cb5f9
commit 6937a2428b

View File

@ -34,6 +34,8 @@ var useSsl = function () {
case 'verify-ca':
case 'verify-full':
return true
case 'no-verify':
return { rejectUnauthorized: false }
}
return defaults.ssl
}