From: Ulrich Meis <kenobi@halifax.rwth-aachen.de>
To: Kris Jurka <books@ejurka.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: A solution to the SSL customizing problem
Date: Wed, 20 Oct 2004 00:49:39 +0200
Message-ID: <200410200049.39716.kenobi@halifax.rwth-aachen.de> (raw)
In-Reply-To: <Pine.BSO.4.56.0410170656300.10233@leary.csoft.net>
References: <200410111752.33375.kenobi@halifax.rwth-aachen.de>
<200410160441.29561.kenobi@halifax.rwth-aachen.de>
<Pine.BSO.4.56.0410170656300.10233@leary.csoft.net>
On Sunday 17 October 2004 14:07, Kris Jurka wrote:
> 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.
Thanks a lot!
> 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?
The JSSE docs say :
---
Like other JCA provider-based "engine" classes, SSLContext objects are created
using the getInstance factory methods of the SSLContext class. These static
methods each return an instance that implements at least the requested secure
socket protocol.
---
My guess is that the minimum requirement for pg is ssl (tls being its
successor). Hence, I would use getInstance("SSL") but I suppose most java
versions will support both anyway.
Uli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: kenobi@halifax.rwth-aachen.de, books@ejurka.com, oliver@opencloud.com
Subject: Re: A solution to the SSL customizing problem
In-Reply-To: <200410200049.39716.kenobi@halifax.rwth-aachen.de>
References: <200410111752.33375.kenobi@halifax.rwth-aachen.de> <200410160441.29561.kenobi@halifax.rwth-aachen.de> <Pine.BSO.4.56.0410170656300.10233@leary.csoft.net> <200410200049.39716.kenobi@halifax.rwth-aachen.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox