pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedJDBC connection to postgres via SSL
2+ messages / 2 participants
[nested] [flat]
* JDBC connection to postgres via SSL
@ 2004-06-25 19:09 Mark Borins <mark.borins@rigadev.com>
2004-06-25 19:44 ` Re: JDBC connection to postgres via SSL Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 2+ messages in thread
From: Mark Borins @ 2004-06-25 19:09 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: JDBC connection to postgres via SSL
2004-06-25 19:09 JDBC connection to postgres via SSL Mark Borins <mark.borins@rigadev.com>
@ 2004-06-25 19:44 ` Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2004-06-25 19:44 UTC (permalink / raw)
To: Mark Borins <mark.borins@rigadev.com>; +Cc: pgsql-jdbc
On Fri, 25 Jun 2004, Mark Borins wrote:
> 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.
The libpq client doesn't need the client to recognize the server cert,
Java's default ssl connections do. See the following message on how to
import the cert into your java keystore:
http://archives.postgresql.org/pgsql-jdbc/2003-08/msg00110.php
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-06-25 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 19:09 JDBC connection to postgres via SSL Mark Borins <mark.borins@rigadev.com>
2004-06-25 19:44 ` Kris Jurka <books@ejurka.com>
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