Skip to content

Conversation

@mattcaswell
Copy link
Member

Two related issues were causing a seg fault in the ca application. Firstly it is possible to create a certificate with an empty Subject. Secondly if ca reads an index.txt file with a missing subject in an entry then it will crash.

Fixes #5109

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.
An index.txt entry which has an empty Subject name field will cause ca
to crash. Therefore check it when we load it to make sure its not empty.

Fixes openssl#5109
@richsalz richsalz added the approval: done This pull request has the required number of approvals label Jan 19, 2018
levitte pushed a commit that referenced this pull request Jan 22, 2018
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 #5114)

(cherry picked from commit e505f1e)
levitte pushed a commit that referenced this pull request Jan 22, 2018
An index.txt entry which has an empty Subject name field will cause ca
to crash. Therefore check it when we load it to make sure its not empty.

Fixes #5109

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #5114)

(cherry picked from commit 1e05c6d)
@mattcaswell
Copy link
Member Author

Pushed. Thanks.

levitte pushed a commit that referenced this pull request Jan 22, 2018
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 #5114)
levitte pushed a commit that referenced this pull request Jan 22, 2018
An index.txt entry which has an empty Subject name field will cause ca
to crash. Therefore check it when we load it to make sure its not empty.

Fixes #5109

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #5114)
@vdukhovni
Copy link

Please revert and rework. See comments on #5115

@vdukhovni vdukhovni reopened this Feb 22, 2018
@vdukhovni vdukhovni removed the approval: done This pull request has the required number of approvals label Feb 22, 2018
@mattcaswell
Copy link
Member Author

Closing this in favour of tracking it under the original issue #5109.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants