Re: Passing parameters to openssl for CSR

2009-01-28 Thread news.gmane.org
Thor, Have you checked out the man pages for the req program? It seems you'd want the * -subj * flag. http://www.openssl.org/docs/apps/req.html Here's a sample generation openssl req -nodes -newkey rsa:2048 -nodes -keyout myserver.key -out server.csr -subj "/C=GB/ST=Yorks/L=York/O=MyCompan

Re: Passing parameters to openssl for CSR

2009-01-28 Thread Thor
Thor, Have you checked out the man pages for the req program? It seems you'd want the * -subj * flag. http://www.openssl.org/docs/apps/req.html Here's a sample generation openssl req -nodes -newkey rsa:2048 -nodes -keyout myserver.key -out server.csr -subj "/C=GB/ST=Yorks/L=York/O=MyCompan

Re: Passing parameters to openssl for CSR

2009-01-27 Thread Crypto Sal
On 01/27/2009 08:57 PM, Thor wrote: 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 creat

Re: Passing parameters to openssl for CSR

2009-01-27 Thread Victor Duchovni
On Wed, Jan 28, 2009 at 02:37:38AM +, Giang Nguyen wrote: > > 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=..., c

RE: Passing parameters to openssl for CSR

2009-01-27 Thread Giang Nguyen
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