Re: A solution to the SSL customizing problem - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: A solution to the SSL customizing problem
Date
Msg-id Pine.BSO.4.56.0410170656300.10233@leary.csoft.net
Whole thread Raw
In response to Re: A solution to the SSL customizing problem  (Ulrich Meis <kenobi@halifax.rwth-aachen.de>)
Responses Re: A solution to the SSL customizing problem  (Oliver Jowett <oliver@opencloud.com>)
Re: A solution to the SSL customizing problem  (Ulrich Meis <kenobi@halifax.rwth-aachen.de>)
List pgsql-jdbc

On Sat, 16 Oct 2004, Ulrich Meis wrote:

> [here's a patch to customize ssl.]
>

I've applied a modified version of this patch.  I moved the Driver.makeSSL
implementation into it's own class to not use @SSL@ everywhere.  I renamed
the sslfactoryargs to sslfactorarg because it really is one argument.  If
the user chooses to encode multiple arguments into it, that's really his
own business.  I put a NonValidatingFactory class in to demonstrate
how this can work and provide the most requested functionality.

Questions:

In the non-validating factory I have a SSLContext.getInstance("TLS"), but
I've also seen it use "SSL".  Is either preferred or does it matter for
pg?

I've been building the jdbc2ee jar files against the actual j2sdkee1.2.1,
not just the jdbc optional package.  This includes support for
javax.net.ssl.SSLSocketFactory, but not javax.net.ssl.SSLContext and
associated classes which are in com.sun.net.ssl instead.  So at the moment
I've modified the ssl requirements to not build ssl into this
particular jar.  What do we want to do about this:

 - nothing, the ee really meant datasource and was never meant to
   include ssl
 - make the existing ssl support work by not building the
   NonValidingFactory class
 - make everything work by building the NonValidatingFactory by importing
   from com.sun.net.ssl instead.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Error connecting when user has no password
Next
From: Kris Jurka
Date:
Subject: setBinaryStream can abandon connection