help-gnutls
[Top][All Lists]
Advanced

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

Re: [Help-gnutls] Sending a client certificate


From: Eric Leblond
Subject: Re: [Help-gnutls] Sending a client certificate
Date: Sun, 06 Feb 2005 14:21:35 +0100

Hi,

I've got a related question about handling of passphrase protected
certificate ?

How can this be done ?

BR

On Sat, 2005-02-05 at 16:26 +0100, Martin Lambers wrote:
> I'm trying to send a client certificate when starting a TLS handshake
> with a server. 
> Currently, I use the following steps (plus error checking, of course):
> 
> gnutls_init(&session, GNUTLS_CLIENT);
> gnutls_set_default_priority(session);
> gnutls_certificate_allocate_credentials(&cred);
> gnutls_certificate_set_x509_key_file(cred, 
>     "cert_file.pem", "key_file.pem", GNUTLS_X509_FMT_PEM);
> gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, cred);
> gnutls_transport_set_ptr(session, fd);
> gnutls_handshake(session);
> 
> But this does not work; no client certificate is send. Are there more
> steps necessary? Am I missing something?
> 
> I used both GnuTLS 1.0.17 and 1.2.0.
> 
> Martin
> 
> 
> _______________________________________________
> Help-gnutls mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnutls





reply via email to

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