Skip to content

Can’t connect to a PostgreSQL server that requires SSL #7

Description

@natesilva

If you connect to a PostgreSQL server that requires SSL, you get:

no pg_hba.conf entry for host "192.168.1.2", user "nate", database "sales", SSL off

The official PostgreSQL libraries default to sslmode=prefer, so SSL should always work unless you manually disable it (sslmode=disable).

However, I don’t know much about Ruby. I wonder if the postgres-pr library used here even supports SSL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions