pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chad Files <cpfiles@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: GCJ, SSL Connection Issue
Date: Tue, 29 Nov 2005 15:23:12 -0600
Message-ID: <9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.com> (raw)

I am having issues connecting to a remote postgres server over SSL
using the GCJ interpreter. I have researched the issue all day and
have not got close to solving it. Any help would be appreciated.

Here is the connection code I am using...

Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://server/database";
Properties props = new Properties();
props.setProperty("user","na");
props.setProperty("password","na");
props.setProperty("ssl","true");
Connection conn = DriverManager.getConnection(url, props);

Here is the error message...

Caused by: java.lang.RuntimeException: error instantiating default
socket factory: java.security.NoSuchAlgorithmException: SSLv3

I tried using different sslFactory settings like so...

props.setProperty("sslfactory", "org.postgresql.ssl.NonValidatingFactory");

I also used the javax.net.ssl.SSLServerSocketFactory class in the
jessie package. With both of these classes I get the error...

The SSLSocketFactory class provided
org.postgresql.ssl.NonValidatingFactory could not be instantiated.



view thread (3+ messages)  latest in thread

Message-ID: <9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.com>
Permalink:  ../9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.com/
Also on:    postgresql.org/message-id/9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.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: cpfiles@gmail.com
  Subject: Re: GCJ, SSL Connection Issue
  In-Reply-To: <9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.com>
  References: <9735eb9b0511291323q6416ac9cp14bcbf060d418737@mail.gmail.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