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 2E72953584 for ; Tue, 5 Apr 2005 00:37:38 +0100 (BST) 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 07702-09 for ; Mon, 4 Apr 2005 23:37:34 +0000 (GMT) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by svr1.postgresql.org (Postfix) with ESMTP id 060C153383 for ; Tue, 5 Apr 2005 00:37:33 +0100 (BST) Received: from web1.messagingengine.com (web1.internal [10.202.2.210]) by frontend1.messagingengine.com (Postfix) with ESMTP id 15603C70A29 for ; Mon, 4 Apr 2005 19:37:35 -0400 (EDT) Received: by web1.messagingengine.com (Postfix, from userid 99) id 025261513; Mon, 4 Apr 2005 19:37:36 -0400 (EDT) Message-Id: <1112657855.23386.231106996@webmail.messagingengine.com> X-Sasl-Enc: PDFE+D1PAqCWqngorPr/AdG9p3m00WqMvxtYInuEwvn+ 1112657855 From: "Benjamin W. Fisher" To: pgsql-jdbc@postgresql.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.5 (F2.73; T1.001; A1.64; B3.05; Q3.03) Subject: JBuilder Question Date: Mon, 04 Apr 2005 16:37:35 -0700 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/20 X-Sequence-Number: 12627 Hey. I've been trying to set myself up so that I can use the JDBC to connect to my SSL postgres server. I got the 3x version (8.x too) latest from the site, and am able to utilize it in my Java code. It works until I set the ssl property to true in a connection. Then it cannot connect. I followed the directions on postgresql.org for setting up my little server to utilize SSL. And I have postgres compiled with openssl, yes. As far as what I did to get the SSL working, I did as per the docs say: Server-side: openssl req -new -text -out server.req openssl rsa -in privkey.pem -out server.key rm privkey.pem openssl req -x509 -in server.req -text -key server.key -out server.crt chmod og-rwx server.key Client-side: openssl x509 -in server.crt -out server.crt.der -outform der keytool -keystore $JAVA_HOME/lib/security/cacerts -alias postgresql -import -file server.crt.der keytool -keystore mystore -alias postgresql -import -file server.crt.der I got through all that. But the java -Djavax.net.ssl.trustStore=mystore -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp I'm not sure how to get in there, since I use JBuilder. I know how to add in required libraries (*.jar) for it, but not sure about this kind of thing. Anyone know how to do this?