[Help-gnutls] Sending a client certificate

Eric Leblond regit at inl.fr
Sun Feb 6 14:21:35 CET 2005


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
> Help-gnutls at gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnutls






More information about the Gnutls-help mailing list