> From: owner-openssl-us...@openssl.org On Behalf Of Mauricio Tavares
> Sent: Friday, 02 November, 2012 16:53

> On Fri, Nov 2, 2012 at 4:23 PM, Ken Goldman 
> <kgold...@us.ibm.com> wrote:
> > I create a self signed certificate using
> >
> >> openssl req -new -x509 -key ... -out ... -days ...
> >
> > It then prompts for the country, state, locality, etc.
> >
> > Is there a way to enter that data on the command line or in 
> a configuration
> > file to avoid the prompts?  I tried -config and a 
> configuration file, but
> > that seems to just change the defaults.  It still prompts.

>       Try something like:
> 
> -subj "/C=US/ST=Florida/L=Waldo/O=Mythical Mad Monkeys, 
> GmbH./OU=IT/CN=$FQDN"
> 
> as an argument to your openssl statement.

as described in the manpage for req; or put prompt=no 
and values *instead of* prompts in the config file 
as described further down in the same manpage.

Note: it doesn't make clear that if you use a config 
file with prompt=no and values, you can't override with 
commandline -subj. -subj only overrides prompt=yes.


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

Reply via email to