Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Drivers
    • Security Level: All
    • Labels:
      None

      Description

      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?

        Activity

        Hide
        Steve Müller added a comment -

        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.

        Show
        Steve Müller added a comment - 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.
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - We should add this functionality, see how it works here: http://www.php.net/manual/en/ref.pdo-pgsql.connection.php#112685
        Hide
        Steve Müller added a comment -

        Okay I will add a driver option for this.

        Show
        Steve Müller added a comment - Okay I will add a driver option for this.

          People

          • Assignee:
            Steve Müller
            Reporter:
            Eder Campelo
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: