Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 85094B5DBD5 for ; Tue, 28 Jun 2011 12:36:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87421-03 for ; Tue, 28 Jun 2011 15:36:17 +0000 (UTC) X-Greylist: delayed 00:35:51.46132 by SQLgrey-1.7.6 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by mail.postgresql.org (Postfix) with ESMTP id 5B9A8B5DBE5 for ; Tue, 28 Jun 2011 12:36:17 -0300 (ADT) Received: from mail02.corp.redhat.com (zmail02.collab.prod.int.phx2.redhat.com [10.5.5.42]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p5SF0Me1011069 for ; Tue, 28 Jun 2011 11:00:23 -0400 From: "Eyal Edri" To: Subject: PgJDBC - Using certificate auth with jboss & postgres Date: Tue, 28 Jun 2011 11:00:22 -0400 (EDT) Message-ID: <022601cc35a4$1780fde0$4682f9a0$@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 X-Mailer: Zimbra 6.0.9_GA_2686 (ZimbraConnectorForOutlook/5.0.2988.16) Thread-Index: Acw1oJrmacEuuDccQ0Gknquudk463A== Content-Language: en-us X-Originating-IP: [10.5.5.72] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/73 X-Sequence-Number: 21997 Hi, I'm trying to make postgres and jboss work together using certificate authentication method and SSL. I've read some recent posts that this functionality is going to implemented (?) but I couldn't find documentation about how to implement it. We're using postgres 8.4.7 under rhel 6 and the datasource file 'postgres-ds.xml' for jboss comm with pg over jdbc. I was able to communicate with postgres with 'psql -h localhost -d postgres -U postgres' (after creating the server/client certs and keys and setting the auth To 'cert' in pg_hba.conf'. What I couldn't find out is how (if possible) to tell jboss(in postgres-ds.xml) to use a keystore in order to find the certs it needs to connect. Also, if it's possible to define an alias property, so it can access the relevant certificate in the keystore. Thanks, Eyal Edri Redhat.