PGSSLMODE=no-verify is not equivalent to { ssl: { rejectUnauthorized: false } }
See original GitHub issueMy app only works with PGSSLMODE=no-verify
and not { ssl: { rejectUnauthorized: false } }
.
Otherwise it will err with: no pg_hba.conf entry for host...
.
Is this the expected behavior?
"pg": "^8.7.1",
"typeorm": "^0.2.37",
"@nestjs/typeorm": "^8.0.2"
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
self signed certificate error · Issue #2009 · brianc/node-postgres
It'll default to rejectUnauthorized: false with the new major version. ... Client({ ssl: { rejectUnauthorized: false }}) // does NOT reject ...
Read more >node.js - Is it ok to be setting rejectUnauthorized to false in ...
We recently moved to Heroku and upon attempting to connect our apps to the DB, it kept rejecting our queries with the message...
Read more >tls - Is it safe to set rejectUnauthorized to false when using ...
Many StackOverflow questions with the same error say to set the variable rejectUnauthorized to false when making the http server. My question is ......
Read more >Why am I getting an error when I upgrade to pg@8?
Setting up the ssl settings from Pool params. ... DATABASE_URL) config.ssl = { rejectUnauthorized: false } const pool = new Pool(config) ...
Read more >How to Resolve Certificate Errors in a NodeJS App with SSL ...
The above SSL errors are thrown because the client is not able to verify the ... Quick and Dirty Fix: rejectUnauthorized ... rejectUnauthorized:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sryze from docs:
Try adding
?sslmode=no-verify
at the end of the URI, which is equivalent to the above.Nope, I’m actually using pg-promise
DATABASE_URL
doesn’t contain any SSL parameters