On 12/10/2012 03:02 PM, Ludovic Courtès wrote:
>> This looks like a PKCS #8 key so you may want to try the pkcs8 >> functions. If you have a recent gnutls version you may try >> gnutls_x509_privkey_import2() which tries several formats. > Given that the above is a public key (or X.509 “certificate”?), isn’t > ‘gnutls_x509_crt_import’ supposed to be able to import it? How does it > differ from ‘gnutls_pcert_import_x509_raw’? Sorry I misread it as "PRIVATE KEY". A PEM file marked as "PUBLIC KEY" is usually a SubjectPublicKeyInfo structure which you can read using the gnutls_pubkey_import functions (or certtool --pubkey-info). regards, Nikos _______________________________________________ Help-gnutls mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-gnutls
