I also wanted to ask the same question. It would be really nice to have command line tool for mapping PKCS#12 to OpenSSL private key using NSS library. I could only extract the private key in PKCS#8 format not in the private key format expected by OpenSSL.
BTW, unless the application specifically needs private key, you can use PKCS#12 file as is for most OpenSSL based apps. You can pass the PKCS#12 file instead of the private key and cert files. For example, cURL has very good wrapper for OpenSSL and it accepts PKCS#12 file as is. -- Subrata Jana Nguyen wrote: > Hi, > > I've been using the NSS pkcs12util to get the credential out of the > browser in pkcs12 format. But I now need to get the public and > private key out of pkcs12 and into "PEM" format. Is this possible > with mozilla tool out there? > > Or is it possible for NSS tool to get the credential out of the > browser in "PEM" format instead of pkcs12? > > Thanks. _______________________________________________ dev-tech-crypto mailing list [EMAIL PROTECTED] https://lists.mozilla.org/listinfo/dev-tech-crypto