Hello all,

I am using the following commands to create a self-cert:

*******************************************************************
req -config openssl.cnf -new -out myserver.csr

rsa -in privkey.pem -out key.pem

x509 -in myserver.csr -out cert.pem -req -signkey key.pem -days 365
*******************************************************************

I would like to be able to perform this through code (Win32 Delphi App).
Shelling out to openssl.exe is no problem.  What I am not sure about is the
second command, "rsa -in privkey.pem -out key.pem", which successively
prompts for data.  Is there a way that I can feed this data (passphrase,
State, City, common name, etc) to the command line through a text file or
such?

I've looked through the command line params docs, but didn't notice
anything.

Thank you for any help,


Warm Regards,

Lee

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to