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:07:41 +0000 (10:07 +0000)
commite505f1e86874acfd98826d64c53bf2ddfd9c1399
treed2ffee9e69c1fa85d89c1bd1f528e675fc42d9ce
parent154d8c132fbe22a248f95e95ef21f1840451da62
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/5114)
apps/ca.c