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=MyCompany 
Ltd./OU=IT/CN=mysubdomain.mydomain.com


Hope this helps
__
OpenSSL Project http://www.openssl.org
User Support Mailing List
openssl-users-mcmkbn63+blafugrpc6...@public.gmane.org
Automated List Manager   
majordomo-mcmkbn63+blafugrpc6...@public.gmane.org




I did indeed read that page, but obviously not close enough!

Thats pretty much exactly what i'm looking for.

Thanks.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


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=MyCompany 
Ltd./OU=IT/CN=mysubdomain.mydomain.com


Hope this helps
__
OpenSSL Project http://www.openssl.org
User Support Mailing List
openssl-users-mcmkbn63+blafugrpc6...@public.gmane.org
Automated List Manager   
majordomo-mcmkbn63+blafugrpc6...@public.gmane.org




Perfect!

I did indeed read that document but obviously not in enough detail - sorry.

Thanks though, exactly what i'm looking for.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


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.


 Date: Wed, 28 Jan 2009 01:57:54 +
 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 Listopenssl-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 Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


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=..., charac-
ters may be escaped by \ (backslash), no spaces are skipped.
 

It is better IMHO to use -config and specify fixed parameters in
a custom .cnf file. One gets control over all the settings that way.

-- 
Viktor.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


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 
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 Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.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=MyCompany 
Ltd./OU=IT/CN=mysubdomain.mydomain.com


Hope this helps
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org