pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Legato <plegato@nks.net>
To: pgsql-admin@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Connecting via SSL not working (except from psql)
Date: Tue, 06 Aug 2002 11:46:42 -0400
Message-ID: <3D4FEF62.2000206@nks.net> (raw)

Hi,

I'm trying to connect to SSL-enabled Postgres (started with -i -l) using 
both the openssl command line utility and with a modified JDBC driver 
using the built in JSSE API from Java 1.4.

If I attempt to connect from a shell with the openssl test utility, I get:

$ openssl s_client -connect localhost:5432
CONNECTED(00000003)
25870:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown 
protocol:s23_clnt.c:460:

With the JDBC driver, at connection I get:

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

In both cases, the server logs the message "FATAL 1:  invalid length of 
startup packet".

A connection to the server with psql works fine, and prints "SSL 
connection (cipher: DES-CBC3-SHA, bits: 168)" at startup. I've tried 
manually specifying this cipher to openssl, which does not change the 
result.

I'm stuck. Any suggestions or pointers will be greatly appreciated. :)

Thanks,
-Paul




view thread (4+ messages)  latest in thread

Message-ID: <3D4FEF62.2000206@nks.net>
Permalink:  ../3D4FEF62.2000206@nks.net/
Also on:    postgresql.org/message-id/3D4FEF62.2000206@nks.net

 · 

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-admin@postgresql.org
  Cc: plegato@nks.net, pgsql-jdbc@postgresql.org
  Subject: Re: Connecting via SSL not working (except from psql)
  In-Reply-To: <3D4FEF62.2000206@nks.net>
  References: <3D4FEF62.2000206@nks.net>

* 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