pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Dockweiler <pdo@wikon.de>
To: pgsql-admin@postgresql.org
Subject: Problem with SSL
Date: Mon, 2 Jul 2001 09:52:22 +0200
Message-ID: <01070209522200.00848@pdo> (raw)
In-Reply-To: <01062816503801.00900@pdo>
References: <01062816503801.00900@pdo>

Am Donnerstag, 28. Juni 2001 16:50 schrieb Peter Dockweiler:
Hello,

I am trying to connect to PostregSQL with SSL.
I need a SSL conection with a windoze client. The client uses psqlodbc and
stunnel for the SSL encryption.
I have compiled the PostgresSQL 7.1.2 and openssl 0.9.6a.
It starts with -i -l.
The SSL connection will not work. I tryed
# openssl s_client -connect localhost:5432 -debug
and get the following output:

CONNECTED(00000003)
write to 08149618 [08149660] (124 bytes => 124 (0x7C))
0000 - 80 7a 01 03 01 00 51 00-00 00 20 00 00 16 00 00   .z....Q... .....
0010 - 13 00 00 0a 07 00 c0 00-00 66 00 00 05 00 00 04   .........f......
0020 - 03 00 80 01 00 80 08 00-80 00 00 65 00 00 64 00   ...........e..d.
0030 - 00 63 00 00 62 00 00 61-00 00 60 00 00 15 00 00   .c..b..a..`.....
0040 - 12 00 00 09 06 00 40 00-00 14 00 00 11 00 00 08   ......@.........
0050 - 00 00 06 00 00 03 04 00-80 02 00 80 6e f6 c8 d7   ............n...
0060 - 55 a4 75 be fd 43 16 be-00 1f cf a8 40 a5 26 60   U.u..C......@.&`
0070 - da f5 1a c7 e2 b1 d2 fa-d3 02 9c d8               ............
read from 08149618 [0814EBC0] (7 bytes => 7 (0x7))
0000 - 45 49 6e 76 61 6c 69                              EInvali
2780:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:460:

I think PostgreSQL does not use the SSL encryption. Does anybody know where
the problem ist?
I can use stunnel on the server, because I need hba.

Thanks in advance.
Peter Dockweiler



view thread (2+ messages)  latest in thread

Message-ID: <01070209522200.00848@pdo>
Permalink:  ../01070209522200.00848@pdo/
Also on:    postgresql.org/message-id/01070209522200.00848@pdo

 · 

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: pdo@wikon.de
  Subject: Re: Problem with SSL
  In-Reply-To: <01070209522200.00848@pdo>
  References: <01062816503801.00900@pdo> <01070209522200.00848@pdo>

* 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