Don't allow an empty Subject when creating a Certificate
authorMatt Caswell <matt@openssl.org>
Fri, 19 Jan 2018 14:34:56 +0000 (14:34 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Jan 2018 10:19:55 +0000 (10:19 +0000)
commitdd37f6f12cc14cc4710289746b112eb0fed3b0b7
tree48b6d57118cefb669109ec0fee426059a6ae1d7e
parent6e17c64b17882cf03f9224aa454e600a7152817a
Don't allow an empty Subject when creating a Certificate

Misconfiguration (e.g. an empty policy section in the config file) can
lead to an empty Subject. Since certificates should have unique Subjects
this should not be allowed.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5115)
apps/ca.c