X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D9B179DCC17 for ; Wed, 30 Nov 2005 09:45:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17589-09 for ; Wed, 30 Nov 2005 09:45:04 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by postgresql.org (Postfix) with ESMTP id CEA739DCBD1 for ; Wed, 30 Nov 2005 09:44:59 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 13so82155nzn for ; Wed, 30 Nov 2005 05:45:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FFGpdQJ4grmZqsQXSz+l+qVygpZIPAL9d0bZh71UZ0D2iwYLH8pCB6NWDX0ULDeW37WwskWpWFRDg2SUdk53N7/IbkUS3u2P9+MmdMykb/kgszgha/JsPRtjQcBBe4LrELOOQc14wQ/Ro/d0cAff1wO2qjmcidmsoI/d+BGgqoU= Received: by 10.36.74.2 with SMTP id w2mr246994nza; Wed, 30 Nov 2005 05:45:02 -0800 (PST) Received: by 10.36.61.18 with HTTP; Wed, 30 Nov 2005 05:45:02 -0800 (PST) Message-ID: <9735eb9b0511300545l63b2be84x5e6cfe5d95b0e127@mail.gmail.com> Date: Wed, 30 Nov 2005 07:45:02 -0600 From: Chad Files To: pgsql-jdbc@postgresql.org Subject: Re: GCJ, SSL Connection Issue In-Reply-To: <9735eb9b0511300542w484769bcxec978aa8ddc83c74@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.com> <9735eb9b0511300542w484769bcxec978aa8ddc83c74@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/233 X-Sequence-Number: 14331 On 11/29/05, Kris Jurka wrote: > This is a limitation of gcj, it doesn't come with a SSL provider by > default. You'll need jessie: http://www.nongnu.org/jessie/ I tried using Jessie yesterday with no success. This morning I decided to read the documentation again to see if I was doing things correctly. Then I discovered the real issue...The documentation is not correct for the addProvider method. It should read: java.security.Security.addProvider(new org.metastatic.jessie.provider.Jessi= e()); (the provider package is not mentioned in the documentation) I am sure with the latest version they just moved some classes around. Anyway I am now able to connect to Postgres remotely over SSL with GCJ. Here is my connection code encase it is useful for anybody else. java.security.Security.addProvider(new org.metastatic.jessie.provider.Jessi= e()); Class.forName("org.postgresql.Driver"); String url =3D "jdbc:postgresql://server/database"; Properties props =3D new Properties(); props.setProperty("user","na"); props.setProperty("password","na"); props.setProperty("ssl","true"); props.setProperty("sslfactory", "org.postgresql.ssl.NonValidatingFactory"); Connection conn =3D DriverManager.getConnection(url, props); Thank you for your help. -- Chad