Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YMLMS-0005yZ-Gc for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Feb 2015 18:53:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YMLMR-0001XS-LI for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Feb 2015 18:53:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YMLMR-0001XM-1g for pgsql-bugs@postgresql.org; Fri, 13 Feb 2015 18:53:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YMLMN-0001rW-NM for pgsql-bugs@postgresql.org; Fri, 13 Feb 2015 18:53:06 +0000 MIME-Version: 1.0 Subject: BUG #12769: SSL-Renegotiation failures To: pgsql-bugs@postgresql.org From: pilum.70@uni-muenster.de Date: Fri, 13 Feb 2015 18:52:02 +0000 Message-ID: <20150213185202.2590.7260@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12769 Logged by: Arne Scheffer Email address: pilum.70@uni-muenster.de PostgreSQL version: 9.3.6 Operating system: CentOS6, openssl version OpenSSL 1.0.1e-fips Description: I get ssl renegotiation failures with streaming standbys. Sometimes the connection breaks and is reconnected afterwards. However, if I use pg_basebackup (same libpq connection string), I don't get any of these failures, allthough the transferred data ist far beyond 512 MB So I don't think it's the ssl renegotiation bug (openssl of a yum update patched centos6) If I disable ssl_renegotiation_limit to 0, there are no errors any more, but that is only a workaround, no solution. Steps to reproduce with testdata: Tested on patched centos6, Postgresql 9.3.6 bash-4.1$ openssl version OpenSSL 1.0.1e-fips 11 Feb 2013 Install Repository yum install postgresql93 postgresql93-server postgresql93-contrib postgresql93-devel postgresql93-libs /usr/pgsql-9.3/bin/initdb -D /tmp/data1 Not necessary but comfortable: create two postgresql-93test Init-Scripts (cp /etc/init.d/postgresql-9.3 postgresql-93test) - changing data-Directory to /tmp/data1 und /tmp/data2 - changing PGPORT to yourport and yourport2 Start server in data1 On server in data1: create user replicateme with replication encrypted password "insecure"; <##### postgresql.conf: ssl = on listen_addresses = 'yourserver.domain.com' wal_level = hot_standby # 4GB fuer WAL-Segmente: wal_keep_segments = 256 max_wal_senders = 2 #####> Certificates installed <##### only 1 line: pg_hba.conf: hostssl replication ... #####> usr/pgsql-9.3/bin/pg_basebackup -D /tmp/data2 -v -P -Fp -l testsslbackup -x -d "host=yourserver.domain.com port=yourport user=replicator sslmode=verify-full" <#### recovery.conf: recovery_target_timeline = 'latest' standby_mode = 'on' primary_conninfo = 'host=yourserver.domain.com port=yourport user=replicator sslmode=verify-full' #####> Start standby server in data2 On server in data1: create database test \c test create table test2 (a int, b text); insert into test2 (select generate_series(0,5000000,1)); update test2 set b='sljfdlksjaofjsaolfjsdlkofjdolasjfoldsjfoldsjaolfjdloksjfolajsdflkjsdlokfjslojdalkfjoldsjfoslafjolasljfdloas'; tail -f /tmp/data1/pg_log/postgresql-Fri.log [...] < 2015-02-13 18:09:55.964 CET >LOG: SSL renegotiation failure [...] < 2015-02-13 18:10:11.819 CET >LOG: SSL renegotiation failure [...] usr/pgsql-9.3/bin/pg_basebackup -D /tmp/data3 -v -P -Fp -l testsslbackup2 -x -d "host=yourserver.domain.com port=yourport user=replicator sslmode=verify-full" tail -f /tmp/data1/pg_log/postgresql-Fri.log --> nothing! -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs