X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 36F483A5DD1 for ; Sun, 5 Dec 2004 18:28:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37117-08 for ; Sun, 5 Dec 2004 18:28:04 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 1BE6F3A5DAB for ; Sun, 5 Dec 2004 18:28:04 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id iB5IRwlC027950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 5 Dec 2004 11:28:00 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id iB5IRwpT052667; Sun, 5 Dec 2004 11:27:58 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id iB5IRw03052666; Sun, 5 Dec 2004 11:27:58 -0700 (MST) (envelope-from mfuhr) Date: Sun, 5 Dec 2004 11:27:57 -0700 From: Michael Fuhr To: Andreas Seltenreich Cc: Andrew M , pgsql-general@postgresql.org Subject: Re: SSL confirmation Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k6rwiq2a.fsf@gate450.dyndns.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/290 X-Sequence-Number: 69902 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." > > > > 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/