[gnutls-dev] Re: gnutls-1.4.0
Simon Josefsson
jas at extundo.com
Wed May 10 17:14:07 CEST 2006
satyakumar <satyam_kkd at hyd.hellosoft.com> writes:
> Hi,
> I am using the gnutls version 1.4.0, How to enable
> client-authentication support during handshake.
> What are the corresponding API's.
Hi! The manual contains example code for a client-authenticated
session, for X.509 one reference would be:
http://www.gnu.org/software/gnutls/manual/html_node/Simple-client-example-with-X_002e509-certificate-support.html#Simple-client-example-with-X_002e509-certificate-support
In general, allocate a X.509 credential structure, and set the private
key and CA certificates using gnutls_certificate_set_x509_key_file and
gnutls_certificate_set_x509_trust_file respectively.
/Simon
More information about the Gnutls-devel
mailing list