On Thu, May 10, 2012, Brent Clark wrote:

> Good day
> 
> I would like to ask.
> 
> The information that is needed for when you generate a CSR, can that be 
> stored and read by openssl to generate the CSR.
> 
> Reason Im asking is. I have to generate quite a few CSR,s, that idea is like 
> a batch / for loop to read the CSR information file, and I output a CSR.
> 
> I googled and stumbled across this. 
> http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
> But hacking with variable subject lines, just appear wrong.
> 
> If anyone can help, it would be appreciated.
> 

There is an example here:

http://www.openssl.org/docs/apps/req.html#EXAMPLES

You can use environment variables to supply the contents of some or all fields.

There is also a sample script in demos/certs/mkcerts.sh

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to