Add 'openssl req' option to specify extension values on command line
authorRichard Levitte <levitte@openssl.org>
Wed, 27 Dec 2017 17:29:36 +0000 (18:29 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 28 Dec 2017 15:07:58 +0000 (16:07 +0100)
commitbfa470a4f64313651a35571883e235d3335054eb
treeb6675484f7b90f396b23c34b5449e86ce8d58c4d
parent8175af50cc208c09f92b30358d30dd86c798b60e
Add 'openssl req' option to specify extension values on command line

The idea is to be able to add extension value lines directly on the
command line instead of through the config file, for example:

    openssl req -new -extension 'subjectAltName = DNS:dom.ain, DNS:oth.er' \
                     -extension 'certificatePolicies = 1.2.3.4'

Fixes #3311

Thank you Jacob Hoffman-Andrews for the inspiration

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4986)
apps/apps.c
apps/apps.h
apps/req.c
doc/man1/req.pod