After I posted this, I discovered that the function
PK11_ExportPrivateKeyInfo's source code only returns NULL. Is there any way
I can access raw key material after I import it into de key database?. I
need to recover (ideally) all private key members in a PKCS #1
rsaPrivateKey data type. Or it can be in PKCS PrivateKeyInfo format and
then I can parse it.
�Is it possible to do such thing? Thanks in advance.

Gabriel Dos Santos

Original Message:
-----------------
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Mon, 27 Jan 2003 03:15:48 -0500
To: [EMAIL PROTECTED]
Subject: Import/Export keys


Hi, I got an error when I sent this message so I think it didn't get to the
list so I try sending it again. If it had arrived already, I  apologize.

HEre�s the question:  I'm trying to use NSS libs to store an recover private
keys. For a
number of reasons not worth mentioning, I've been requested to do a very
specific thing: I will receive a file containing a raw RSA private key (DER
Encoded I suppose). I must store this key and lately recover it to be used
with a module that uses Crypto++.
Going trhough the NSS API LXR docs I found PK11_ImportPrivateKeyInfo and
PK11_ExportPrivateKeyInfo.  These 2 functions seem to be what I need but
I'm not sure wich values should I use for *publicValue, isPerm, isPrivate,
and keyUsage parameters of ImportPrivateKeyInfo. I haven't been able to
find a sample that helps me with this so I would apreciatte any help.

Thanks in advance,
Gabriel


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


Reply via email to