Hi Folks, Would appreciate some responses for the questions below. Most importantly-
I see the following note in http://www.openssl.org/docs/apps/pkcs8.html "The format of PKCS#8 DSA (and other) private keys is not well documented: it is hidden away in PKCS#11 v2.01, section 11.9. OpenSSL's default DSA PKCS#8 private key format complies with this standard. " *Are the private keys for DSA (generated using the openssl API i mention in my emails below) encoded using any of the PKCS formats?. Is it PKCS8?* Thanks -AG On Fri, Mar 5, 2010 at 11:51 AM, Anand Giriraj <anand.giri...@gmail.com>wrote: > Sorry there was a small typo > s/DSA_generate_keys/DSA_generate_key > > Could I possibly use EVP_PKEY2PKCS8() api for the encoding? > > Regards > -AG > > On Fri, Mar 5, 2010 at 11:35 AM, Anand Giriraj > <anand.giri...@gmail.com>wrote: > >> Hi Folks. >> If I generate DSA private key using the following commands: >> >> DSA_generate_params() >> DSA_generate_keys() >> >> The resulting private keys are not encoded using any of the PKCS formats, >> right?. If wrong, which format are they encoded in?. >> >> Would it be appropriate to encode them in PKCS8?. And if so which openssl >> API could I use? >> >> Thanks >> -AG >> > >