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 CFB44D1B1BE for ; Fri, 16 Jul 2004 12:30:33 -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 92321-08 for ; Fri, 16 Jul 2004 15:30:31 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 4FD77D1B199 for ; Fri, 16 Jul 2004 12:30:30 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i6GFUNi7067809 for ; Fri, 16 Jul 2004 15:30:23 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i6GF9Wag044754 for pgsql-jdbc@postgresql.org; Fri, 16 Jul 2004 15:09:32 GMT From: =?ISO-8859-1?Q?Jos=E9_Carlos_Stevenson?= X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: SSL Problem Date: Fri, 16 Jul 2004 12:10:16 -0300 Organization: Hub.Org Networking Services Lines: 71 Message-ID: References: <001601c469a8$87de94f0$0501a8c0@comai04> <005401c46a50$b59e60c0$0501a8c0@comai04> <011001c46a75$a35633f0$0501a8c0@comai04> <004101c46b26$862f42b0$0501a8c0@comai04> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en In-Reply-To: <004101c46b26$862f42b0$0501a8c0@comai04> To: pgsql-jdbc@postgresql.org 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/212 X-Sequence-Number: 10596 Dear Stefano and Kris, I've been using JWS to deploy an application that uses postgresql. I've configured pg to use MD5 for a minimum of security (user and passwd) - how can I deploy an app that uses SSL WITHOUT having to run keytool on each machine? Can I "show" the certificate (self signed) and ask the user if he/she would like to accept it as valied? Is thera a HOWTO anywhere or some sample code showing how to do that? I also have the same problem using LDAP (and OpenLDAP)... Thanks in advance, José Carlos Stevenson. Stefano Bonnin wrote: > Problem solved. > > I copied the certificate that I created on the server to the client and then > I execute "keytool" on the client. > So, every time that I install my application on a new PC I have to execute > keytool operation on that machine. > > Thaks for the help. > RedS > ----- 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 >> > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly >