Web lists-archives.com

[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,

Attachment: pgpgvoVyNie8M.pgp
Description: PGP signature

gtk-list mailing list