I am writing a program that will, from scratch, generate a DSA key pair. The
public key will be placed into an x509 certificate and written to disk, and
the private key will be written to a file with DER encoding. Is this
possible?
I know that I could do this in steps using the following command :
openssl req -outform DER -newkey dsa:<param file> -keyout <priv key> -keyform
DER -rand <rand file> -x509 -out <cert file>
For this to work, you first must create your DSA param file. Which I do not
want to create an intermediate files, just the 2 that I listed above.
Any help would be greatly appreciated.
Thank you.
PS. the <priv key> file in the openssl command above seems to create a PEM
encoded private key file, not DER...not sure why.
--
Mark Webb
Software Engineer
Dolphin Technology
1300B Floyd Ave
Rome, NY 13440
Phone: (315) 334-4892 x222
Fax: (315) 339-4846
Email: [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]