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 23:19:14 +0100
Message-ID: <201102052319.14282.rsmogura@softperience.eu> (raw)
In-Reply-To: <AANLkTi=Bt7h61hKMqfSCCdzBUPoVJA0NqfvueMTuYwTu@mail.gmail.com>
References: <201102050958.37104.rsmogura@softperience.eu>
	<201102051708.24712.rsmogura@softperience.eu>
	<AANLkTi=Bt7h61hKMqfSCCdzBUPoVJA0NqfvueMTuYwTu@mail.gmail.com>

zhong ming wu <mr.z.m.wu@gmail.com> Saturday 05 February 2011 22:11:50
> On Sat, Feb 5, 2011 at 11:08 AM, Radosław Smogura
> 
> It's nice to know that all the problems can be traced to JVM settings.
> 
> FWIW, I ended using
> 'sslfactory=org.postgresql.ssl.NonViladatingFactory' on Windows 7
> which I didn't need on Mac.
> 
> Have you looked into 'keytool' ?  That lets you manipulate the
> certificates that JVM relies on.  What I am not sure is where one must
> enter server certificates one by one into JVM or whether one can enter
> a CA.
Sueficinet is to put parent cert (or self-signed) cert in truststore, but 
standard validator validates certs expirantion date. I don't know if parent 
cert must be self-signed. Actually I have own CA, so it was sueficient to put 
CA cert in truststore.

If SSL doesn't want to work with this 
-Djavax.net.ssl.trustStorePassword=changeit
may help,"chageit" is standard master password.



view thread (7+ messages)

Message-ID: <201102052319.14282.rsmogura@softperience.eu>
Permalink:  ../201102052319.14282.rsmogura@softperience.eu/
Also on:    postgresql.org/message-id/201102052319.14282.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: <201102052319.14282.rsmogura@softperience.eu>
  References: <201102050958.37104.rsmogura@softperience.eu> <201102051708.24712.rsmogura@softperience.eu> <AANLkTi=Bt7h61hKMqfSCCdzBUPoVJA0NqfvueMTuYwTu@mail.gmail.com> <201102052319.14282.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