[gio] howto load a GTlsCertificate with encrypted key



Hi all,

the subject says it all - I want to load a combined TLS certificate and encrypted private key PEM file into a 
GTlsCertificate using g_tls_certificate_new_from_file() or g_tls_certificate_new_from_pem().  However, this will always 
fail with GnuTLS error "ASN1 parser: Error in DER parsing".

Is there a way to tell GIO to call a password callback in the case on an encrypted key, or do I have to load 
the key myself using the GnuTLS functions, and then add it as “private-key-pem” property to the 
GTlsCertificate object?

Thanks in advance,
Albrecht.

Attachment: pgpeOCKW_jgMh.pgp
Description: PGP signature



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