meta-openembedded/meta-oe/classes
Enrico Jörns 2d1d128a41
signing.bbclass: make PEM loading compatible with OpenSC 0.26.0
With https://github.com/OpenSC/OpenSC/pull/3174 which is part of 0.26.0,
OpenSC does not support reading the (DER-converted) object data from
stdin anymore.

However, OpenSC/pkcs11-tool also supports reading PEM files directly.
This we can use for simply replacing and simplifying the stdin piping in
signing_import_cert_from_pem().

Only for password-protected files we still have to use OpenSSL for
conversion, since OpenSC/pkcs11-tool currently doesn't have a mechanism
for providing passwords.
For these cases, we store the converted PEM into a simple temporary
file. This handling is sufficient, since SoftHSM import should be used
for example keys only and SoftHSM also doesn't protect the keys in any
way. Keys which actually need to be protected are stored in HSMs and
accessed via their PKCS#11 URIs.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-02 09:48:26 -07:00
..
breakpad.bbclass
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
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
machine_kernel_pr.bbclass
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
signing.bbclass signing.bbclass: make PEM loading compatible with OpenSC 0.26.0 2025-07-02 09:48:26 -07:00
socorro-syms.bbclass
sysext-image.bbclass classes: add a systemd-sysext image class 2025-06-25 06:44:55 -07:00