[gnutls-help] Cert retrieve callback question

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Apr 28 11:02:19 CEST 2015


On Tue, Apr 28, 2015 at 12:10 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C]
<lavr at ncbi.nlm.nih.gov> wrote:
>> The callback is only called when a certificate has been requested.
> Thanks!
> Another question:  how can I get the certificate and private key as they have been
> set by gnutls_certificate_set_x509_simple_pkcs12_file() via a credentials handle?

You can get these in 3.4.0 with gnutls_certificate_get_x509_key() and
gnutls_certificate_get_x509_crt().

regards,
Nikos



More information about the Gnutls-help mailing list