[gio] howto load a GTlsCertificate with encrypted key

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

 



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: pgpG1Uq4qmP7H.pgp
Description: PGP signature

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux