apps/{ca,req,x509}.c: Improve diag and doc mostly on X.509 extensions, fix multiple...
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 7 Dec 2020 18:37:46 +0000 (19:37 +0100)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 10 Dec 2020 14:19:55 +0000 (15:19 +0100)
commit1a683b80dc9ad4dcbf206a0617364a9d614a9883
tree489d4cc0bfbb0664cd692e95ab0c175aa8b3ebd3
parent98ba251fe6f49fc2ee310f6e559c3431922fa16d
apps/{ca,req,x509}.c: Improve diag and doc mostly on X.509 extensions, fix multiple instances

This includes a general correction in the code (now using the X509V3_CTX_REPLACE flag)
and adding a prominent clarification in the documentation:

    If multiple entries are processed for the same extension name,
    later entries override earlier ones with the same name.

This is due to an RFC 5280 requirement - the intro of its section 4.2 says:

    A certificate MUST NOT include more than one instance of a particular extension.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13614)
apps/ca.c
apps/req.c
apps/x509.c
doc/man5/x509v3_config.pod
test/recipes/25-test_x509.t