help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnutls] Re: gnutls_x509_crt_check_hostname()


From: Simon Josefsson
Subject: [Help-gnutls] Re: gnutls_x509_crt_check_hostname()
Date: Wed, 12 Aug 2009 10:53:03 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

Daniel Stenberg <address@hidden> writes:

> On Wed, 12 Aug 2009, Simon Josefsson wrote:
>
>> Can you post the certificate, or create one that exhibits the same problem?
>
> Yes I can. I have the luxury of actually being able to repeat this
> problem within the curl test suite (test 311). This test was just
> added and thus made me notice this flaw...
>
> The exact cerficates used for this test are found here:
> http://cool.haxx.se/cvs.cgi/curl/tests/certs/
>
> The "Server-localhost0h-sv.pem" is used for the server cert, while
> EdelCurlRoot-ca.crt is the cacert.

Thanks.  The extra spice needed here is that the SAN contains an
embedded NUL.

This is what I feared would happen if we return an error when NUL in
CN/SAN values is discovered: some other code incorrectly uses the error
to mean that there is no valid SAN field at all, and proceeds to check
the CN instead.  Possibly we need to return valid data, but make sure
any NULs are correctly LDAP-escaped.

Maybe we can come up with a simpler solution...

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]