Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0CA0EB5DC51 for ; Fri, 23 Sep 2011 11:44:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64284-06-5 for ; Fri, 23 Sep 2011 14:44:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from lists.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id DB9FBB5DC69 for ; Fri, 23 Sep 2011 11:44:14 -0300 (ADT) Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com.commandprompt.com [207.173.203.215]) by lists.commandprompt.com (Postfix) with ESMTPA id E53413480D0; Fri, 23 Sep 2011 07:44:12 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.21.227] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTP (2.0.1); 23 Sep 2011 07:44:10 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AEDF66E37B; Fri, 23 Sep 2011 11:44:09 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Robert Haas , Lou Picciano , Pg Hackers , Srinivas Aji Subject: Re: Re: [BUGS] BUG #6189: libpq: sslmode=require verifies server certificate if root.crt is present From: Alvaro Herrera To: Magnus Hagander In-reply-to: References: <1221006623.1866841.1316781328448.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <1316785695-sup-1595@alvh.no-ip.org> Date: Fri, 23 Sep 2011 11:44:09 -0300 Message-Id: <1316788985-sup-7886@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Assp-Version: 2.0.1(3.2.15) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-89052-06663 X-Assp-Original-Subject: Re: [HACKERS] Re: [BUGS] BUG #6189: libpq: sslmode=require verifies server certificate if root.crt is present X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/1210 X-Sequence-Number: 195399 Excerpts from Magnus Hagander's message of vie sep 23 11:31:37 -0300 2011: > > On Fri, Sep 23, 2011 at 15:55, Alvaro Herrera > wrote: > > This seems strange to me.  Why not have a second option to let the user > > indicate the desired SSL verification? > > > > sslmode=disable/allow/prefer/require > > sslverify=none/ca-if-present/ca/full > > > > (ca-if-present being the current "require" sslmode behavior). > > > > We could then deprecate sslmode=verify and verify-full and have them be > > synonyms of sslmode=require and corresponding sslverify. > > Hmm. I agree that the other suggestion was a bit weird, but I'm not > sure I like the multiple-options approach either. That's going to > require redesign of all software that deals with it at all today :S Why? They could continue to use the existing options; or switch to the new options if they wanted different behavior, as is the case of the OP. > Maybe we should just update the docs and be done with it :-) That's another option, sure ... :-) -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support