Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 89A3A9F37F1 for ; Tue, 22 Nov 2011 15:34:17 -0400 (AST) Received: from auth-smtp.nebula.fi ([217.30.180.105]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RSw6h-0003vH-WA for pgsql-jdbc@postgresql.org; Tue, 22 Nov 2011 19:34:16 +0000 Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id pAMJY3JU026760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Nov 2011 21:34:03 +0200 Message-ID: <4ECBF92B.2070906@nitorcreations.com> Date: Tue, 22 Nov 2011 21:34:03 +0200 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: SslTests failures Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 201111/69 X-Sequence-Number: 22404 Hi, I'm trying to run the SslTests but get 88 failures. It is probably something I set up wrong in the environment. The following tests fail: sslhostnossl[89]-requireG* sslhostnossl[89]-verify-caGG* sslhostnossl[89]-verify-fullGG* sslhostsslgh[89]-disable* sslhostsslbh[89]-disable* sslhostcertgh[89]-disable* sslhostcertbh[89]-disable* sslcertgh[89]-disable* sslcertbh[89]-disable* All of them fail with unexpectedly successful connection (meaning: test expected connection opening to fail but it succeeded). Here is a patch to the ssltest documentation describing how I have tried to set-up the environment. Index: certdir/README =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/certdir/README,v retrieving revision 1.1 diff -u -r1.1 README --- certdir/README 17 Nov 2011 11:27:50 -0000 1.1 +++ certdir/README 22 Nov 2011 19:29:27 -0000 @@ -42,3 +42,11 @@ The subdirectory server contains what should be copied to the PGDATA directory. For the tests the sslinfo module must be installed into every database. +The ssl=on must be set in postgresql.conf + +The following command creates the databases and installs the sslinfo module. + +for db in hostssldb hostnossldb certdb hostsslcertdb; do + createdb $db + psql $db -c "create extension sslinfo" +done