mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-16 12:47:00 +00:00
Use the DER-formatted system trusted key
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
@@ -11,9 +11,10 @@ SRC_URI += "\
|
||||
"
|
||||
|
||||
do_configure_append() {
|
||||
if [ -f "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" ]; then
|
||||
openssl x509 -in "${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.pem" \
|
||||
-outform DER -out "${B}/system_trusted_cert.x509"
|
||||
cert="${STAGING_DIR_TARGET}${sysconfdir}/keys/system_trusted_key.der"
|
||||
|
||||
if [ -f "$cert" ]; then
|
||||
install -m 0644 "$cert" "${B}/system_trusted_cert.x509"
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user