Skip site navigation (1) Skip section navigation (2)

Re: php, postgres, ssl

From: Michael Fork <mfork(at)toledolink(dot)com>
To: Adam Lang <aalang(at)rutgersinsurance(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: php, postgres, ssl
Date: 2001-03-21 22:09:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
There are a couple of things you can do to establish a secure connection
between a remote postgres server and any other server.

One is using SSH tunnels:

Another is to establish your connection with "requiressl=true" as part of
the options strings under libpq -- which, since PHP uses libpq, I belive
should work under PHP as pg_Connect("host=server dbname=db user=me
password=pass requiressl=true") (and if it doesn't work, it should be able
to be added easily).

I haven't actually done either of these, but I also don't see any reason
why these wouldn't work :)

Michael Fork - CCNA - MCP - A+
Network Support - Toledo Internet Access - Toledo Ohio

On Wed, 21 Mar 2001, Martin A. Marques wrote:

> El Mi 21 Mar 2001 18:33, Adam Lang escribi:
> > Correct, all it does is connect straight to the database.  It doesn't have
> > anything to involve encryption... it doesn't care.  So, you'll probably
> > need to secure the path yourself, ie IPSEC.
> >
> > Someone else may have a better idea, but this is all I can think of.
> > Typically though, you shouldn't have PHP connect to a database over a
> > connection that is insecure/public.
> >
> > Any reason this is a concern?
> Well, I thought about this, because I was trying to build something like it. 
> A web server, and a database server, seperated! So I thought, if Postgres 
> accepts hostssl connections (if compiled with ssl support), why doesn't PHP 
> use this powerfull feature?
> Would it be difficult to build a pg_connectssl function in PHP that would do 
> this?
> Saludos... :-)
> -- 
> System Administration: It's a dirty job, 
> but someone told me I had to do it.
> -----------------------------------------------------------------
> Martn Marqus			email: 	martin(at)math(dot)unl(dot)edu(dot)ar
> Santa Fe - Argentina
> Administrador de sistemas en
> -----------------------------------------------------------------

In response to


pgsql-php by date

Next:From: Adam LangDate: 2001-03-22 13:45:24
Subject: Re: php, postgres, ssl
Previous:From: Martin A. MarquesDate: 2001-03-21 21:56:56
Subject: Re: php, postgres, ssl

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group