-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[SSL] Connecting... error: connection requires a valid client certificate #2424
New issue
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
Comments
Which version of pg are you using, via pg-promise? Note: it’s probably best not to set |
Thanks @charmander, I thought it was conflicting by checking a self signed cert. I will change it to Here is my
|
Some of the versions of pg-promise this can match depend on pg 8.4.1, which is affected by #2392. You need pg 8.5.0 or later, meaning pg-promise 10.7.4 or later. Can you check your package-lock.json for the specific versions in use? |
Thanks for the hint! In fact it is actually using:
I've updated it in my POC and now it is:
and I'm super happy because it is perfectly working. Thank you so much @charmander I believe we can consider this issue closed. |
Hello guys and thanks for your hard work.
I've managed to create a local development environment which uses PSQL and self-signed certificates.
(Some hints here)
My docker-compose
My snippet code:
The problem is that even If I'm able to successfully verify the certs:
openssl verify -CAfile src/client/ca.crt -purpose sslclient src/client/client.crt
=>src/client/client.crt: OK
and even If I'm able to successfully connect to the PSQL server by command line:
I have the following error running the upper code snippet:
Thanks in advance!
The text was updated successfully, but these errors were encountered: