Re: Re: ssl connection support

Gerhard Häring <[email protected]> Sun, 21 Nov 2004 21:46:03 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Jorge Godoy wrote:
> Gerhard Haering <[email protected]> writes:
> 
> 
>>On Fri, Nov 19, 2004 at 06:54:15PM +1000, Timothy Smith wrote:
>>
>>>whats kind of support for ssl connections does pypgsql have?
>>
>>None so far, but it would be easy to add the additional parameters to
>>the connect() function in pyPgSQL/PgSQL.py.
> 
> None?  It seems to work here...  If I connect with pyPgSQL to a remote
> database that only accepts SSL connections it accepts my connection.  If
> I use psql without SSL, it doesn't connect at all, so I assumed it used
> some library from the client side of PostgreSQL.  Am I wrong?

Well, SSL support in pyPgSQL is just as good as the client library it's 
linked against.

It's just that pyPgSQL's connect() function doesn't have any way to pass 
information about SSL to the server. Like, if you require SSL, prefer 
SSL etc.

That's important if the server supports both SSL and non-SSL and you 
want to make sure which method is used.

-- Gerhard



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/