From: Alvaro Herrera <alvherre@commandprompt.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Lou Picciano <loupicciano@comcast.net>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Srinivas Aji <srinivas.aji@emc.com>
Subject: Re: Re: [BUGS] BUG #6189: libpq: sslmode=require verifies server certificate if root.crt is present
Date: Fri, 23 Sep 2011 11:44:09 -0300
Message-ID: <1316788985-sup-7886@alvh.no-ip.org> (raw)
In-Reply-To: <CABUevEx5PGYrK1p1=sqORCtASXrzFMxkb5g=dez+PTuDG4iHsg@mail.gmail.com>
References: <CABUevExm7ZsVasLX3wfG7gzk2opaCwRtU=ztg6rErS5yNxPonA@mail.gmail.com>
<1221006623.1866841.1316781328448.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
<CABUevEyxKGMgNGm7=yP2CvT7S=CQYyGAhxy2716f25QLW7NzDg@mail.gmail.com>
<CA+TgmobXNnBVMVfLrqJiUx2B4t0gznfVT2Lxc5kQ7Ooex+BdCQ@mail.gmail.com>
<CABUevEy-9BsDkpWWK8U-NCd0fdmHWy7f=WvUfmynn+bz_Xo8Uw@mail.gmail.com>
<1316785695-sup-1595@alvh.no-ip.org>
<CABUevEx5PGYrK1p1=sqORCtASXrzFMxkb5g=dez+PTuDG4iHsg@mail.gmail.com>
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
> <alvherre@commandprompt.com> 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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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: alvherre@commandprompt.com, magnus@hagander.net, robertmhaas@gmail.com, loupicciano@comcast.net, pgsql-hackers@postgresql.org, srinivas.aji@emc.com
Subject: Re: [BUGS] BUG #6189: libpq: sslmode=require verifies server certificate if root.crt is present
In-Reply-To: <1316788985-sup-7886@alvh.no-ip.org>
References: <CABUevExm7ZsVasLX3wfG7gzk2opaCwRtU=ztg6rErS5yNxPonA@mail.gmail.com> <1221006623.1866841.1316781328448.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <CABUevEyxKGMgNGm7=yP2CvT7S=CQYyGAhxy2716f25QLW7NzDg@mail.gmail.com> <CA+TgmobXNnBVMVfLrqJiUx2B4t0gznfVT2Lxc5kQ7Ooex+BdCQ@mail.gmail.com> <CABUevEy-9BsDkpWWK8U-NCd0fdmHWy7f=WvUfmynn+bz_Xo8Uw@mail.gmail.com> <1316785695-sup-1595@alvh.no-ip.org> <CABUevEx5PGYrK1p1=sqORCtASXrzFMxkb5g=dez+PTuDG4iHsg@mail.gmail.com> <1316788985-sup-7886@alvh.no-ip.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