From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Dan Kaminsky <dan(at)doxpara(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #4340: SECURITY: Is SSL Doing Anything? |
Date: | 2008-08-19 19:28:49 |
Message-ID: | 48AB1EF1.9080605@hagander.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Dan Kaminsky wrote:
>
>
> Tom Lane wrote:
>> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>>
>>> (I don't believe OpenSSL does this verification either, because AFAICS
>>> OpenSSL only ever sees the IP address of the server, and not the FQDN)
>>>
>>
>> In common usages libpq doesn't have the FQDN of the server either.
>> To impose such a requirement, we'd have to forbid naming the server
>> by IP address or via a domain-search-path abbreviation.
>>
>> regards, tom lane
>>
> Well, right now, SSL does nothing for you, so you have to do something.
> It's OK, SSL isn't doing a lot for a lot of people, but this is the
> beginning of us calling people out on that.
Do feel free to explain how it "does nothing" for you with properly set
up certificates (see my previous email). (I'm still not saying it cannot
be significantly improved, of course)
> You can handle IP address and domain-search-path by having an option for
> explicitly declaring the subject name to be expected at the other side
> of the SSL connection. In other words, sever the DNS/FQDN link, and
> just explicitly say "however I reach that host over there, I expect
> database.backend.com".
You can do this today. If you are willing to do it in the application,
just verify the certificate DN and you're done.
Yes, it would certainly be a lot better to do the validation earlier in
the chain (if you're sending plaintext password, you'll end up sending
the password before you do the validation. But I don't think you even
can do that in current versions), and if it was slightly easier to do,
but you can certainly validate the cert if you want to.
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Dan Kaminsky | 2008-08-19 19:40:00 | Re: BUG #4340: SECURITY: Is SSL Doing Anything? |
Previous Message | Dan Kaminsky | 2008-08-19 19:13:16 | Re: BUG #4340: SECURITY: Is SSL Doing Anything? |