Make 'openssl req -x509' more equivalent to 'openssl req -new'
authorRichard Levitte <levitte@openssl.org>
Mon, 22 Aug 2016 13:22:17 +0000 (15:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 22 Aug 2016 13:47:49 +0000 (15:47 +0200)
commitfd7ca7465b67336b8950a505b6d2adee867a78f7
treea93c3e865b88a66b63bf8d8417bcd4e557fefe2f
parent9c8bca1c206df7886aaef4692badc4049b488e40
Make 'openssl req -x509' more equivalent to 'openssl req -new'

The following would fail, or rather, freeze:

    openssl genrsa -out rsa2048.pem 2048
    openssl req -x509 -key rsa2048.pem -keyform PEM -out cert.pem

In that case, the second command wants to read a certificate request
from stdin, because -x509 wasn't fully flagged as being for creating
something new.  This changes makes it fully flagged.

RT#4655

Reviewed-by: Andy Polyakov <appro@openssl.org>
apps/req.c