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:15:24 +0000 (10:15 +0000)
commitf2982ad79c9eeac4d8ee4225056f971eadf9302b
tree04ab7d4b37af6b81d60bbb557258ce87a62a14fb
parent42999a230f893d63a17dd9aca4f8df5c860fc836
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)

(cherry picked from commit e505f1e86874acfd98826d64c53bf2ddfd9c1399)
apps/ca.c