Skip to content

can't connect to pg with ssl #6782

@eyalsach

Description

@eyalsach

Since upgrading to the latest node i can't connect to a postgres db using ssl.
Connection to pg on ssl on Node v 5.10.1 was working fine.

example code:
var pg = require('pg');
pg.connect(connectionString, function(err, client, done) {

where connectionString can be something like:
postgres://master:[email protected]:5432/db_demo?ssl=true

EDIT: the same happens even when omitting the ssl=true param.

I get: { error: password authentication failed for user "master"

(the password is the correct one, this error happens only on the latest node version)

is this a bug or a change that I need to handle differently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssues and PRs that are invalid.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions