Skip site navigation (1) Skip section navigation (2)

JDBC connection to postgres via SSL

From: "Mark Borins" <mark(dot)borins(at)rigadev(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC connection to postgres via SSL
Date: 2004-06-25 19:09:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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


pgsql-jdbc by date

Next:From: Kris JurkaDate: 2004-06-25 19:44:22
Subject: Re: JDBC connection to postgres via SSL
Previous:From: Markus SchaberDate: 2004-06-24 16:44:07
Subject: Experimental COPY Helper class

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group