Re: gnome-keyring How to get the private fields of a private key using gck.



Hi Stef,
           Thanks for your reply.
My use case is "To export a private key", I'm using gnutls library, and I am using the following API to import the private key I obtain from gnome keyring: gnutls_x509_privkey_import_rsa_raw ().
This API requires each of the RSA parameters, like private exponent, prime 1, prime 2, etc. Without passing each of these parameters, the gnutls import fails. Ultimately we need to import the private key, and then export it in to a file. So I am unable to export a private key from the gnome keyring user store into a file.

Thanks,
Ravi Krishna.

On Tue, Dec 14, 2010 at 9:15 PM, Stef Walter <stefw collabora co uk> wrote:
On 2010-12-14 09:41, ravi krishna wrote:
>            I'm testing gnome-keyring module(especially pkcs11 stuff
> using GCK) on my desktop.
> I'm unable to get the private fields of a private key
> (After looking in to the code, i found that while requesting for any
> private field of a private key, it simply returns
> "CKR_ATTRIBUTE_SENSITIVE" ).

Yes, that's currently the case. I'm interested in what the use case for
retrieving the sensitive parts of the key is. Could you explain further?

Cheers,

Stef



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