RE: Extracting RSA keys from internal database

2008-10-14 Thread David Stutzman
> Anyway, I've tried dumping it to a file, this way: > And after that, I tried managing it with openssl command line tools, > but it doesn't seem to have a proper structure. > > ¿What are the contents of the string encprivkey->encryptedData.data? > > Is it a proper pkcs5 or pkcs8 or pkcs12 (when

Re: Extracting RSA keys from internal database

2008-09-03 Thread Nelson B Bolyard
Paco wrote, On 2008-09-03 03:33: > How could I build with NSS a pkcs8 object which was treatable by > openssl? You don't. You create a PKCS#12 file (also known as a "pfx" file) that contains both the private key and the cert(s). OpenSSL can handle files of that format. _

Extracting RSA keys from internal database

2008-09-03 Thread Paco
Hi. I'm developing a component where i need to import/export Certificates and RSA keys from Firefox's internal database, and I need them in a format which could be treated with OpenSSL. I've currently managed to extract the certificate in DER format and I'm also extracting the ciphered key, using