[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Re: gnutls-1.4.0
From: |
Simon Josefsson |
Subject: |
[gnutls-dev] Re: gnutls-1.4.0 |
Date: |
Wed, 10 May 2006 17:14:07 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
satyakumar <address@hidden> 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