SSL connection between PHP4 & PostgreSQL ???

From: "Mike Morris" <mike(at)musicplace(dot)com>
To: php-db(at)lists(dot)php(dot)net, pgsql-general(at)postgresql(dot)org
Subject: SSL connection between PHP4 & PostgreSQL ???
Date: 2004-10-05 20:15:39
Message-ID: 41629E7B.12155.7A7EC8B1@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I've setup a postgres server (7.4) and confirmed that SSL is enabled - I can successfully
connect via tcp socket over SSL using the psql client.

From PHP4, how can I get the pg_connect function to negotiate an SSL connection?

I gather from researching the issue that pg_connect uses the same libraries as psql, so that
this should be possible. But I've tried every syntax I can think of... the "options" parameter to
pg_connect is not well documented.

I've played with all varieties of "requiressl" or "ssl", alone or as a boolean, e.g.,
"requiressl=true", etc...

If not possible in PHP4, is it in PHP5?

Any help greatly appreciated!

MikeM
Mike Morris
The Music Place
1617 Willowhurst Avenue
San Jose, CA 95125
(408) 445-ARTS (2787)
------------------------------------
Your Free Historical Quote:
Above all, I know there is a Supreme Being who rules the affairs of men and
whose goodness and mercy have always followed the American people, and I know
He will not turn from us now if we humbly and reverently seek His powerful aid.
- Grover Cleveland, Second Inaugural Address, March 4, 1893
------------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kris Jurka 2004-10-05 20:31:39 Re: Postgres 8.0 + JDBC
Previous Message Oliver Jowett 2004-10-05 20:10:49 Re: Postgres 8.0 + JDBC