help-gnutls
[Top][All Lists]
Advanced

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

Re: Importing a public key


From: Nikos Mavrogiannopoulos
Subject: Re: Importing a public key
Date: Mon, 10 Dec 2012 17:56:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]