[gnutls-help] Using password encrypted keys with certificates

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Apr 8 17:41:10 CEST 2013


On 04/07/2013 09:36 PM, MK wrote:

> I've been developing an http(s) server in my spare time for a few years
> and last fall converted it to use gnutls.
> 
> Up until now I've been using certificates with keys that are not
> password encrypted, via gnutls_certificate_set_x509_key_mem(), but I
> need to add functionality to deal with keys that are encrypted
> with a password.   What is the basic procedure for doing this?


The simplest way is to use gnutls_certificate_set_x509_simple_pkcs12_file().

http://gnutls.org/manual/html_node/Core-TLS-API.html#index-gnutls_005fcertificate_005fset_005fx509_005fsimple_005fpkcs12_005ffile


regards,
Nikos



More information about the Gnutls-help mailing list