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 C0F87D1B7D1 for ; Fri, 25 Jun 2004 16:09:38 -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 63935-02 for ; Fri, 25 Jun 2004 19:09:38 +0000 (GMT) Received: from rigadev.com (smtp-1.vancouver.ipapp.com [216.152.192.207]) by svr1.postgresql.org (Postfix) with ESMTP id 98DE6D1B7D8 for ; Fri, 25 Jun 2004 16:09:33 -0300 (ADT) Received: from devlap ([24.156.37.60]) by smtp-1.vancouver.ipapp.com ; Fri, 25 Jun 2004 12:09:28 -0700 From: "Mark Borins" To: Subject: JDBC connection to postgres via SSL Date: Fri, 25 Jun 2004 15:09:17 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_008A_01C45AC6.693EBC00" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRa5+kltcaH5vBbSxWUdt1VOwX/ww== X-Rcpt-To: X-Country: CA Message-ID: <108819057301@smtp-1.vancouver.ipapp.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=HTML_60_70, HTML_MESSAGE, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/168 X-Sequence-Number: 10370 This is a multi-part message in MIME format. ------=_NextPart_000_008A_01C45AC6.693EBC00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have downloaded and compiled with SSL support Postgres 7.4.3. I have enabled SSL connections in both the pg_hba.conf and postgresql.conf. I have been able to connect via ssl to the database from a client using pgAdmin III without any problem. However, from the same client my JDBC application cannot connect to the postgres server over SSL. What do I have to do to enable this? I have tried putting SSL=true as a query string parameter in my connection URL. This causes an exception about not getting a proper SSL handshake, or something of the sort. So my question is, what do I have to do to be able to connect to a postgres server via SSL from JDBC? Thank you ------=_NextPart_000_008A_01C45AC6.693EBC00 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have downloaded and compiled with SSL support Postgres 7.4.3.

I have enabled SSL connections in both the pg_hba.conf and postgresql.conf.

 

I have been able to connect via ssl to the databa= se from a client using pgAdmin III without any problem.

 

However, from the same client my JDBC application cannot connect to the postgres server over SSL.

What do I have to do to enable this?

I have tried putting SSL=3Dtrue as a query string parameter in my connection URL.  This causes an exception about not ge= tting a proper SSL handshake, or something of the sort.

 

So my question is, what do I have to do to be abl= e to connect to a postgres server via SSL from JDBC?

 

Thank you

------=_NextPart_000_008A_01C45AC6.693EBC00--