Purpose of gnutls_credentials_set

Nikos Mavrogiannopoulos nmav at gnutls.org
Sun Jun 20 21:13:02 CEST 2010


Florian Weimer wrote:
> * Nikos Mavrogiannopoulos:
> 
>> After or during the handshake (with a callback that I don't remember
>> its name) you should verify the certificate chain received by peer.
>> For that you can use gnutls_certificate_verify_peers2(). Could you
>> suggest the points in documentation that were not clear for you, so we
>> can correct them? The problem when I read the documentation is that I
>> know everything :) that needs to be done thus such things are easy to
>> miss.
> gnutls_certificate_set_x509_key, gnutls_certificate_set_x509_key_mem,
> gnutls_certificate_set_x509_key_file should mention that they are only
> relevant to the server side, and that on the client side,
> gnutls_certificate_client_set_retrieve_function has to be used to
> install a callback which provides the certificate to send to the
> server.

 Hi,
Actually those functions you mention are valid for both client and
server side. The callback is optional and suitable for the case where
you might not initially know which certificate to load.

regards,
Nikos






More information about the Gnutls-help mailing list