From: Adrian Klaver <adrian.klaver@gmail.com>
To: Hari Babu <haribabu.kommi@huawei.com>
Cc: dmp <danap@ttc-cmc.net>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [JDBC] JDBC connection test with SSL on PG 9.2.1 server
Date: Fri, 01 Feb 2013 06:22:59 -0800
Message-ID: <510BCFC3.3040202@gmail.com> (raw)
In-Reply-To: <510bcd82.c1b30e0a.076d.68e8SMTPIN_ADDED_BROKEN@mx.google.com>
References: <51068542.845c2b0a.7fd0.68b2SMTPIN_ADDED_BROKEN@mx.google.com>
<CADK3HHLO-eup0et0nh85sZ=urfhsa=pqqGr8xJ+GpRZGBAC9+A@mail.gmail.com>
<00a401cdfdde$db9737e0$92c5a7a0$@kommi@huawei.com>
<5107FBCA.3040107@ttc-cmc.net>
<007601cdffb5$cc4834a0$64d89de0$@kommi@huawei.com>
<510ABEC8.6030201@ttc-cmc.net>
<510bcd82.c1b30e0a.076d.68e8SMTPIN_ADDED_BROKEN@mx.google.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 02/01/2013 06:06 AM, Hari Babu wrote:
>
>
>
> We tried the approach as suggested by you but still it is not working as shown in the below log (I had enabled logLevel as 1)
> keystore passowrd is qwerty
> 19:26:22.666 (1) PostgreSQL 9.2 JDBC4 (build 1002)
> 19:26:23.451 (1) Receive Buffer Size is 43808
> 19:26:23.452 (1) Send Buffer Size is 25386
> getConnection returning driver[className=org.postgresql.Driver,org.postgresql.Driver@3f7fa65e]
> Connection1 successful! Conn1:org.postgresql.jdbc4.Jdbc4Connection@6baa9f99
> null
> wrongqwerty
> DriverManager.getConnection("jdbc:postgresql://127.0.0.1:15432/postgres")
> trying driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver@3597a37c]
> *Driver.connect (jdbc:postgresql://127.0.0.1:15432/postgres)
> trying driver[className=org.postgresql.Driver,org.postgresql.Driver@3f7fa65e]
> 19:26:23.835 (2) PostgreSQL 9.2 JDBC4 (build 1002)
> 19:26:23.847 (2) Receive Buffer Size is 43808
> 19:26:23.848 (2) Send Buffer Size is 25386
> getConnection returning driver[className=org.postgresql.Driver,org.postgresql.Driver@3f7fa65e]
> Connection2 successful! Conn2:org.postgresql.jdbc4.Jdbc4Connection@2e958bb8
>
> Connect OK
>
> There is function as SSL_CTX_SETSESSIONCACHEMODE(ctxt, mode) in C library of SSL.
> Can you please let us know if there is some similar function in JSSE also.
Per a previous post, have you verified that pg_hba.conf is set up to
properly handle SSL password connections?
>
> Regards,
> Hari Babu.
--
Adrian Klaver
adrian.klaver@gmail.com
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: adrian.klaver@gmail.com, haribabu.kommi@huawei.com, danap@ttc-cmc.net, pgsql-general@postgresql.org
Subject: Re: [JDBC] JDBC connection test with SSL on PG 9.2.1 server
In-Reply-To: <510BCFC3.3040202@gmail.com>
References: <51068542.845c2b0a.7fd0.68b2SMTPIN_ADDED_BROKEN@mx.google.com> <CADK3HHLO-eup0et0nh85sZ=urfhsa=pqqGr8xJ+GpRZGBAC9+A@mail.gmail.com> <00a401cdfdde$db9737e0$92c5a7a0$@kommi@huawei.com> <5107FBCA.3040107@ttc-cmc.net> <007601cdffb5$cc4834a0$64d89de0$@kommi@huawei.com> <510ABEC8.6030201@ttc-cmc.net> <510bcd82.c1b30e0a.076d.68e8SMTPIN_ADDED_BROKEN@mx.google.com> <510BCFC3.3040202@gmail.com>
* 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