[openssl/openssl] 4e5bf9: Add apps/x509 -set_issuer & -set_subject option to...

Job Snijders noreply at github.com
Mon Jan 15 09:42:48 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 4e5bf933131863e0459d7b39931d464fef77b078
      https://github.com/openssl/openssl/commit/4e5bf933131863e0459d7b39931d464fef77b078
  Author: Job Snijders <job at sobornost.net>
  Date:   2024-01-15 (Mon, 15 Jan 2024)

  Changed paths:
    M CHANGES.md
    M apps/x509.c
    M doc/man1/openssl-x509.pod.in
    M test/recipes/25-test_x509.t

  Log Message:
  -----------
  Add apps/x509 -set_issuer & -set_subject option to override issuer & subject

This changeset adds the counterpart to the '-subj' option to allow overriding
the Issuer. For consistency, the `-subj` option is aliased to `-set_subject`.

The issuer can be specified as following apps/openssl x509 -new -set_issuer
'/CN=example-nro-ta' -subj '/CN=2a7dd1d787d793e4c8af56e197d4eed92af6ba13' ...

This is useful in constructing specific test-cases or rechaining PKI trees

Joint work with George Michaelson (@geeohgeegeeoh)

Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23257)




More information about the openssl-commits mailing list