meta-openembedded/meta-oe/classes
Johannes Schneider b6915f6399
signing.bbclass: add signing_get_intermediate_certs
Add a method that returns a list of intermediary CA roles.

When using a complex PKI structure with for example "openssl cms",
these roles can then be iterated over adding in turn a '-certificate'.
Pseudo-code example:
  for intermediate in $(signing_get_intermediate_certs 'FooBaa'); do
     signing_extract_cert_pem $intermediate $intermediate.pem
     CMD+=" --certificate=$intermediate.pem"
  done

The typical use-case would be adding these intermediate certificates
to the CMS structure so that the relying party can build the chain
from the signing leaf certificate to the locally stored trusted CA
certificate.

Reviewed-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-28 11:04:24 -07:00
..
breakpad.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
capnproto.bbclass capnproto: remove binaries from target-build, add bbclass 2025-02-03 11:25:22 -08:00
check-version-mismatch.bbclass check-version-mismatch.bbclass: use oe.qemu and add QEMU_OPTIONS settings 2025-05-29 22:28:02 -07:00
discoverable-disk-image.bbclass classes: add discoverable disk image class 2025-06-25 06:44:54 -07:00
fitimage.bbclass meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
gitpkgv.bbclass gitpkgv.bbclass: Fix broken git revison 2025-03-22 09:58:08 -07:00
gitver.bbclass gitver: Pass git directory argument to gitrev_run 2019-06-15 17:17:09 -07:00
image_types_sparse.bbclass image_types_sparse: Fix syntax error 2023-08-01 10:26:51 -07:00
image_types_verity.bbclass image_types_verity.bbclass: Optionally create hash data in separate file 2025-03-27 17:05:46 -07:00
itstool.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
machine_kernel_pr.bbclass remove True option to getVar calls 2016-12-02 09:16:17 +01:00
panel-mipi-dbi.bbclass panel-mipi-dbi.bbclass: initial addition of the firmware blob class 2024-11-01 06:43:16 -07:00
scancode.bbclass meta-oe: remove True option to getVar calls (again) 2019-01-13 10:28:01 -08:00
signing.bbclass signing.bbclass: add signing_get_intermediate_certs 2025-06-28 11:04:24 -07:00
socorro-syms.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
sysext-image.bbclass classes: add a systemd-sysext image class 2025-06-25 06:44:55 -07:00