Skip to content
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

error: connection requires a valid client certificate with pg-pool 3.2.2 #2405

Closed
eyalcohen opened this issue Nov 10, 2020 · 7 comments
Closed

Comments

@eyalcohen
Copy link

With configuration as follows:

const postgresConfig = {
  ...
  ssl: {
    rejectUnauthorized: false,
    ca: env.serverca,
    key: env.clientkey,
    cert: env.clientcert
  }
  ...
}

I get an error: connection requires a valid client certificate

My configuration worked fine with pg 8.4.1 / pg-pool 3.2.1 and breaks on pg 8.4.1 / pg-pool 3.2.2.

I believe commit 80c500f is the source of my issue, but perhaps there is a more correct way to pass the certificates now.

@brianc
Copy link
Owner

brianc commented Nov 10, 2020 via email

@charmander
Copy link
Collaborator

Duplicate of #2392

@charmander charmander marked this as a duplicate of #2392 Nov 10, 2020
@domosapien
Copy link

This was still broken as of yesterday. It seems like pg-pool@3.2.2 is breaking it. See vitaly-t/pg-promise#764 (comment)

@charmander
Copy link
Collaborator

@domosapien Did you upgrade to pg 8.5.1?

@domosapien
Copy link

domosapien commented Nov 13, 2020

@domosapien Did you upgrade to pg 8.5.1?

@charmander I have not. Looking at the diff between 8.5.0 and 8.5.1, it doesn't look like anything really would affect what I'm seeing, or what others have reported in that thread. I can attempt that version soon, but I don't have high hopes.

@charmander
Copy link
Collaborator

@domosapien 8.5.0 should be fine. Are you using pg-promise? pg-promise still depends on 8.4.1.

@domosapien
Copy link

@charmander ahh, I guess the changes in 8.5.0 fixes it (tested with a beta version of pg-promise that updates the lib version). I thought it was an issue here too due to pg-pool requiring a set version in the testing we had done. Thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants