apps/x509.c: Make -x509toreq respect -clrext, -sigopt, and -extfile options
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 8 Jan 2021 16:43:13 +0000 (17:43 +0100)
committerDr. David von Oheimb <dev@ddvo.net>
Wed, 20 Jan 2021 14:59:22 +0000 (15:59 +0100)
commit05458fdb73dcca30edace5ad727a15d6d919e215
tree481b7b5ba0e6b184d76b0ca208d96e45eb41a129
parentb9fbacaa7bdce2083186211b3cdf8511ad4cb91d
apps/x509.c: Make -x509toreq respect -clrext, -sigopt, and -extfile options

Also prevent copying SKID and AKID extension, which make no sense in CSRs
and extend the use -ext to select with extensions are copied.
Further simplifiy the overall structure of the code.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13711)
apps/lib/apps.c
apps/x509.c
doc/man1/openssl-x509.pod.in
test/recipes/25-test_x509.t