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.
>
> Rationale:
>
> I can script it and avoid user errors.
> I can automate changing the values for regression testing.
>
      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.

> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@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