Skip to content

Commit 6937a24

Browse files
Add PGSSLMODE=noverify support to opt-out of rejecting self-signed certs
1 parent afd14cb commit 6937a24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/pg/lib/connection-parameters.js

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ var useSsl = function () {
3434
case 'verify-ca':
3535
case 'verify-full':
3636
return true
37+
case 'no-verify':
38+
return { rejectUnauthorized: false }
3739
}
3840
return defaults.ssl
3941
}

0 commit comments

Comments
 (0)