X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C5B2DD1B23C for ; Fri, 16 Jul 2004 07:53:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66342-09 for ; Fri, 16 Jul 2004 10:53:12 +0000 (GMT) Received: from smtp-bal.opennet.it (noder32-48.opennet.it [212.110.32.48]) by svr1.postgresql.org (Postfix) with SMTP id 0000CD1B178 for ; Fri, 16 Jul 2004 07:53:03 -0300 (ADT) Received: (qmail 29058 invoked from network); 16 Jul 2004 10:34:28 -0000 Received: from unknown (HELO comai04) (212.110.56.34) by 0 with SMTP; 16 Jul 2004 10:34:28 -0000 Message-ID: <002a01c46b24$27f1cfd0$0501a8c0@comai04> From: "Stefano Bonnin" To: Subject: Fw: SSL Problem Date: Fri, 16 Jul 2004 13:00:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/208 X-Sequence-Number: 10592 ok the problem is here, the output is the following ... trustStore is: C:\java\j2sdk1.4.2_03\jre\lib\security\cacerts ... but now I undestand that I don't undestand nothing about the certificates. This is the CLIENT PATH i.e the path of the machine where my java (client) application run on. I always operated on the server, never on the client! So, if I want a SSL connection between postgres and another PC I have to create the certificate and execute keytool -keystore /usr/local/j2sdk1.4.2_04/jre/lib/security/cacerts -alias postgres -import -file server.crt.der on the CLIENT? Or not? Thanks > > ----- Original Message ----- > From: "Kris Jurka" > To: "Stefano Bonnin" > Cc: > Sent: Thursday, July 15, 2004 8:18 PM > Subject: Re: [JDBC] SSL Problem > > > > > > > > On Thu, 15 Jul 2004, Stefano Bonnin wrote: > > > > > 2004-07-15 14:03:40 LOG: could not load root certificate file > > > "/usr/local/pgsql-7.4.2/bin/../../pgsql-7.4.1/data/root.crt": No such > file > > > or directory > > > DETAIL: Will not verify client certificates. > > > > This is fine. You do not need a root.crt file. This is used to > > authenticate clients to the server which is optional and not necessary to > > establish a SSL connection. > > > > Again the problem seems to be that you have not made the server cert > > available to the connecting jvm. Adding -Djavax.net.debug=ssl to your > > java command will produce a lot of debug information, but will likely > > confirm this. The key line will be in the first part of the output where > > it displays which trustStore you are using. The server cert must be in > > this file. > > > > Kris Jurka > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/docs/faqs/FAQ.html > > >