You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is pretty simple and works fine when a Certificate Authority Pem is provided, and I need to connect over SSL. It just doesn't seem to work, when I don't want to use SSL to connect to the server.
If you don’t want to use SSL, you need to set the entire ssl property to a falsy value. ssl.mode is not an option that exists; you might be thinking of the sslmode connection string parameter.
I'm setting the Node-Postgres Pool parameter ssl.mode to disabled via an environment variable. However I'm get the error:
My code is simple enough, and the object stringifying the Pool object confirms the setting:
The code is pretty simple and works fine when a Certificate Authority Pem is provided, and I need to connect over SSL. It just doesn't seem to work, when I don't want to use SSL to connect to the server.
I'm not sure if this is a bug or, if I'm doing something wrong. Maybe I should be setting the CA to "undefined"?
The text was updated successfully, but these errors were encountered: