Closed benbro closed 2 years ago
Is there an error logged by the connection pool about the SSL issue?
(scram support is in the works)
I don't see an error in the log. Anything I need to turn on?
Once the password is encrypted with scram-sha-256 changing password_encryption = md5 will have no effect. I'll try setting the password after changing password_encryption. I don't know why I don't see errors on either the server side and the client side.
https://www.postgresql.org/docs/current/auth-password.html
The availability of the different password-based authentication methods depends on how a user's password on the server is encrypted (or hashed, more accurately). This is controlled by the configuration parameter password_encryption at the time the password is set.
So you mean it is still trying to use scram and that is the issue?
And you are right, looks like there isn't proper logging. I can probably get that added before finishing scram support.
I'll be able to verify it later but yes that's what I think. In postgres 14 I need to first set password_encryption to md5 and only then set the user password.
This works:
password_encryption = md5
in postgresql.conf.scarm support will make it work by default. Thank you for working on it.
I'm using Erlang OTP-24.3.3 and PostgreSQL 12 with SSL authentication successfully. I can't connect to a new database server running PostgreSQL 14. I don't see any error in the database log file. On the client I only see the error {error,none_available} when trying to use pgo:query/2.
I'm using self signed ssl cert:
and:
I've also tried to change password_encryption to md5 in postgresql.conf because of the missing scram support in pgo:
Any idea what's missing?