pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radosław Smogura <rsmogura@softperience.eu>
To: pgsql-jdbc@postgresql.org
Cc: zhong ming wu <mr.z.m.wu@gmail.com>
Subject: Re: ssl connection strangely stops working
Date: Sat, 5 Feb 2011 17:08:24 +0100
Message-ID: <201102051708.24712.rsmogura@softperience.eu> (raw)
In-Reply-To: <AANLkTinVK_2PsizR_HhfB-g=eS+4k0Tn3PTzxFQnMDSk@mail.gmail.com>
References: <201102050958.37104.rsmogura@softperience.eu>
	<AANLkTinVK_2PsizR_HhfB-g=eS+4k0Tn3PTzxFQnMDSk@mail.gmail.com>

zhong ming wu <mr.z.m.wu@gmail.com> Saturday 05 February 2011 15:31:30
> On Sat, Feb 5, 2011 at 3:58 AM, Radosław Smogura
> 
> <rsmogura@softperience.eu> wrote:
> > I don't think JDBC driver use custom SSL "validators" including host name
> > and certificate chains, if you don't specify one with socket factory. It
> > lies on this what is available in JVM. It's looks like in this way Sun
> > SSL sockets works.
I was asking because I was need to configure truststore password with -D 
(realy unsecure, because ps -wwx will show it), to make GF to open LDAPS 
connection - I have self signed cert.

> Very likely that the settings is in JVM.  When I wrote above reply I
> made it work on Mac.
> GF is using JVM of Apple.  I am still struggling to make it work on
> windows 7 which uses Oracle JVM.
I tested GF 3.1 on IBM JDK. I looked into sources, there are many many places 
that depends on Sun JVM implementation and Sun JDK. I wrote few lines to make 
this work, but hmmm... many places left.

> Also in my replied above I meant to write that there is still
> hostname/CN mismatch with new unexpired commercial CA.
> 

I didn't found, at a glance any piece of code that adds custom cert or host 
name validation in JDBC driver, it uses this what will get from system.
<snip>

Regards,
Radek



view thread (7+ messages)  latest in thread

Message-ID: <201102051708.24712.rsmogura@softperience.eu>
Permalink:  ../201102051708.24712.rsmogura@softperience.eu/
Also on:    postgresql.org/message-id/201102051708.24712.rsmogura@softperience.eu

 · 

reply

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: rsmogura@softperience.eu, mr.z.m.wu@gmail.com
  Subject: Re: ssl connection strangely stops working
  In-Reply-To: <201102051708.24712.rsmogura@softperience.eu>
  References: <201102050958.37104.rsmogura@softperience.eu> <AANLkTinVK_2PsizR_HhfB-g=eS+4k0Tn3PTzxFQnMDSk@mail.gmail.com> <201102051708.24712.rsmogura@softperience.eu>

* 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