Skip to content

Loading…

DBAL-702: Postgresql SSLconnection #1926

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user edercampelo:

I cannot connect to my postgresql database using SSL. When I try, I get the following error:

SQLSTATE[08006] [7] FATAL: no pg_hba.conf entry for host "123.123.123.123", user "user", database "db", SSL off

I've tried to add to the options 'sslenabled' => true and 'ssl' => true, but it didn't work. What can I do, folks?

@doctrinebot

Comment created by @deeky666:

Unfortunately it is currently not possible to establish SSL enabled connections for pdo_pgsql as the DBAL driver only evaluates the parameters "host", "port" and "dbname". Any other connection parameter will be ignored by now.

@doctrinebot

Comment created by @beberlei:

We should add this functionality, see how it works here: http://www.php.net/manual/en/ref.pdo-pgsql.connection.php#112685

@doctrinebot

Comment created by @deeky666:

Okay I will add a driver option for this.

@doctrinebot

Issue was closed with resolution "Fixed"

@deeky666 deeky666 was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.