pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jahnen@in.tum.de
Subject: BUG #15688: psql cannot connect to database which uses TLS nginx reverse proxy with SSL client auth
Date: Tue, 12 Mar 2019 15:48:59 +0000
Message-ID: <15688-55463748a04474a5@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15688
Logged by:          Magnus
Email address:      jahnen@in.tum.de
PostgreSQL version: 11.1
Operating system:   ArchLinux
Description:        

```
psql "port=9876 host=****.me user=docker
sslcert=/home/magnus/mep/ca_mqtt/db.crt
sslkey=/home/magnus/mep/ca_mqtt/db_nopasswd.key
sslrootcert=/home/magnus/mep/ca_mqtt/ca.crt sslmode=require"
psql: server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.
```

nginx logs:
```

2019/03/12 15:35:59 [info] 6#6: *359 SSL_do_handshake() failed (SSL:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number) while SSL
handshaking, client: 84.138.94.156, server: 0.0.0.0:9876,
2019/03/12 15:40:22 [info] 6#6: *488 SSL_do_handshake() failed (SSL:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number) while SSL
handshaking, client: 84.138.94.156, server: 0.0.0.0:9876,
2019/03/12 15:40:16 [info] 6#6: *485 SSL_do_handshake() failed (SSL:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number) while SSL
handshaking, client: 84.138.94.156, server: 0.0.0.0:9876,
2019/03/12 15:36:41 [info] 6#6: *411 SSL_do_handshake() failed (SSL:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number) while SSL
handshaking, client: 84.138.94.156, server: 0.0.0.0:9876
```

See also here: 
https://youtrack.jetbrains.com/issue/DBE-7814



Message-ID: <15688-55463748a04474a5@postgresql.org>
Permalink:  ../15688-55463748a04474a5@postgresql.org/
Also on:    postgresql.org/message-id/15688-55463748a04474a5@postgresql.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-bugs@postgresql.org
  Cc: noreply@postgresql.org, jahnen@in.tum.de
  Subject: Re: BUG #15688: psql cannot connect to database which uses TLS nginx reverse proxy with SSL client auth
  In-Reply-To: <15688-55463748a04474a5@postgresql.org>
  References: <15688-55463748a04474a5@postgresql.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