pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Borins <mark.borins@rigadev.com>
To: pgsql-jdbc@postgresql.org
Subject: JDBC connection to postgres via SSL
Date: Fri, 25 Jun 2004 15:09:17 -0400
Message-ID: <108819057301@smtp-1.vancouver.ipapp.com> (raw)

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

view thread (2+ messages)  latest in thread

Message-ID: <108819057301@smtp-1.vancouver.ipapp.com>
Permalink:  ../108819057301@smtp-1.vancouver.ipapp.com/
Also on:    postgresql.org/message-id/108819057301@smtp-1.vancouver.ipapp.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mark.borins@rigadev.com
  Subject: Re: JDBC connection to postgres via SSL
  In-Reply-To: <108819057301@smtp-1.vancouver.ipapp.com>
  References: <108819057301@smtp-1.vancouver.ipapp.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox