pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
Cc: Andrew M <andrew@jibeya.com>
Cc: pgsql-general@postgresql.org
Subject: Re: SSL confirmation
Date: Sun, 5 Dec 2004 11:27:57 -0700
Message-ID: <20041205182757.GA46671@winnie.fuhr.org> (raw)
In-Reply-To: <87k6rwiq2a.fsf@gate450.dyndns.org>
References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com>
	<333EE0F2-46DE-11D9-BFCB-0003938366A4@jibeya.com>
	<87r7m4isom.fsf@gate450.dyndns.org>
	<3E054141-46E4-11D9-8B7A-0003938366A4@jibeya.com>
	<87k6rwiq2a.fsf@gate450.dyndns.org>

On Sun, Dec 05, 2004 at 06:59:41PM +0100, Andreas Seltenreich wrote:
> Andrew M. writes:
> 
> > this what I get when I issue the openssl command:
> >
> > 6521:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake
> > failure:s23_lib.c:226:
> >
> > could you explain what this means if you know?
> 
> I'm afraid, I think my suggestion to use openssl's s_client with the
> postmaster's builtin SSL support was bogus, since Magnus Hagander
> writes in an older message: "SSL is not enabled at connection time in
> pgsql - it is negotiatied with the postmaster, and enabled later."
> 
> <URL:http://groups.google.de/groups?as_umsgid=81124B76C0CF364EBAC6CD213ABEDEF71D3095%40ARGON.edu.sollentu...;
> 
> So using the openssl tools won't help here.

Right -- see the "Frontend/Backend Protocol" chapter in the
documentation, in particular the "SSL Session Encryption" section:

http://www.postgresql.org/docs/7.4/static/protocol-flow.html#AEN52782

You can use psql to check if SSL is working.  Psql prints a message
like the following if SSL was successfully negotiated:

SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (20+ messages)  latest in thread

Message-ID: <20041205182757.GA46671@winnie.fuhr.org>
Permalink:  ../20041205182757.GA46671@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041205182757.GA46671@winnie.fuhr.org

 · 

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: mike@fuhr.org, uwi7@rz.uni-karlsruhe.de, andrew@jibeya.com, pgsql-general@postgresql.org
  Subject: Re: SSL confirmation
  In-Reply-To: <20041205182757.GA46671@winnie.fuhr.org>
  References: <7B8F2685-46D8-11D9-BFCB-0003938366A4@jibeya.com> <333EE0F2-46DE-11D9-BFCB-0003938366A4@jibeya.com> <87r7m4isom.fsf@gate450.dyndns.org> <3E054141-46E4-11D9-8B7A-0003938366A4@jibeya.com> <87k6rwiq2a.fsf@gate450.dyndns.org> <20041205182757.GA46671@winnie.fuhr.org>

* 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