the "req" man page mentions: -subj arg sets subject name for new request or supersedes the subject name when processing a request. The arg must be formatted as /type0=value0/type1=value1/type2=..., charac- ters may be escaped by \ (backslash), no spaces are skipped.
> Date: Wed, 28 Jan 2009 01:57:54 +0000 > From: jagintesven...@googlemail.com > To: openssl-users@openssl.org > Subject: Passing parameters to openssl for CSR > > Hi guys, > > I'm wondering if its possible to pass parameters to openssl when > creating a CSR, specifically the country name, state name, locality > name, organization name, common name etc? > > The reason being, I ideally would like to automate the process of > creating a CSR and have it not require user input (other variables would > be passed to it by default from an outside source). > > Something like... > > openssl req -days 3650 -nodes -new -keyout user.key -out user.csr > -config -countryname SE -commonname user ... > > Any help would be appreciated, > > Thanks. > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org _________________________________________________________________ HotmailĀ® goes where you go. On a PC, on the Web, on your phone. http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org