gnutls-devel
[Top][All Lists]
Advanced

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

Re: certificate validation callbacks [was: Re: validating SAN URIs in gn


From: Daniel Kahn Gillmor
Subject: Re: certificate validation callbacks [was: Re: validating SAN URIs in gntls]
Date: Tue, 08 Mar 2011 09:05:06 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101213 Icedove/3.1.7

On 03/08/2011 03:27 AM, Nikos Mavrogiannopoulos wrote:
> I don't really understand about what kind of callbacks is the discussion 
> about.
> Isn't the callback set by gnutls_certificate_set_verify_function() sufficient?

Whoops!  I didn't realize this had been added to 2.10.0.  Yes, it looks
like that will do exactly what i was thinking.  Thanks for anticipating
this, Nikos!  I'm assuming this callback triggers on both the server and
client sides?

Out of curiosity, when gnutls_certificate_set_verify_function() gets
called, do we have evidence that the peer is actually in control of the
secret key corresponding to the public key in the certificate?  Or do we
only get that evidence after the handshake has completed?  (maybe the
answer is different for the case where we are the client vs. the case
where we are the server?)

The docs [0] say:

>> This function sets a callback to be called when peer's certificate has
>> been received in order to verify it on receipt rather than doing after
>> the handshake is completed. 

Is the idea that users of older versions of gnutls would have used
something like gnutls_handshake_set_post_client_hello_function() if they
are the server?  or just that they would have to manually invoke
gnutls_handshake(), then check the certificate, and alert/fail the
connection at that point?

        --dkg

 [0]
http://www.gnu.org/software/gnutls/manual/html_node/Core-functions.html#gnutls_005fcertificate_005fset_005fverify_005ffunction


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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