Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1HWI-0006ig-54 for pgsql-general@arkaria.postgresql.org; Fri, 01 Feb 2013 14:23:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U1HWH-0005tA-31 for pgsql-general@arkaria.postgresql.org; Fri, 01 Feb 2013 14:23:09 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1HWG-0005t1-2G; Fri, 01 Feb 2013 14:23:08 +0000 Received: from mail-da0-f41.google.com ([209.85.210.41]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1HWD-0001C9-9q; Fri, 01 Feb 2013 14:23:07 +0000 Received: by mail-da0-f41.google.com with SMTP id e20so1763195dak.0 for ; Fri, 01 Feb 2013 06:23:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=moBeF4pmDZ3bMnPVFzVqe3F9BR32F4cO8tDzS4t5yeU=; b=qlvpol2A+lpfwU+EkeZsIf/cVjLZxJ4DmHcirqEGvYy37WbaPCtYAxYlig90BNiC0k JoAsBShfr8ogBNNqQS9zJEakC827r8oE3lUZZ15hAFxDDlixes+n1B9tQy9bIHe0OWwL SjlzcwUk6vLAiqZSd/hN/JXaXI5WZcDPir11L/pCpi+wjXSUv6/Lc0bl5bWrSFQVnmVC 8e5I+xay2kqzMJHe+oxsIOi2fft4qAB53Ga0Ekb51W8K8bSw/mCkHxGnpufqgL9ky9PC pxyK6S1lOeXk413vKWV8L5+6zQ5d3DrnZuW8eyQlDPVBBIaKxVV0Zq5W6HFlkaJehXUI t9aQ== X-Received: by 10.68.222.196 with SMTP id qo4mr32327735pbc.140.1359728582887; Fri, 01 Feb 2013 06:23:02 -0800 (PST) Received: from [192.168.0.2] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id rk6sm8591510pbc.20.2013.02.01.06.23.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Feb 2013 06:23:01 -0800 (PST) Message-ID: <510BCFC3.3040202@gmail.com> Date: Fri, 01 Feb 2013 06:22:59 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hari Babu CC: 'dmp' , pgsql-jdbc@postgresql.org, pgsql-general@postgresql.org Subject: Re: [JDBC] JDBC connection test with SSL on PG 9.2.1 server References: <51068542.845c2b0a.7fd0.68b2SMTPIN_ADDED_BROKEN@mx.google.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> In-Reply-To: <510bcd82.c1b30e0a.076d.68e8SMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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