summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-10-25 10:37:34 -0400
committerJia Zhang <zhang.jia@linux.alibaba.com>2018-10-25 23:03:40 +0800
commitbf314c0d0c9d38c3d4b8ab4fb0cdfd77cddfa59e (patch)
tree497eca7408d80933d4e6895a74dd35e964c03e25
parentbd155539ec1677148ff516249e33890953fe763b (diff)
downloadmeta-secure-core-bf314c0d0c9d38c3d4b8ab4fb0cdfd77cddfa59e.tar.gz
meta-signing-key: When deploying keys UEFI keys, deploy DER format
Generally speaking, for firmware to import PK/KEK/DB keys they need to be in the binary "DER" format and typically have the "cer" file extension. When deploying our keys, convert what we have to that format and deploy as well for ease of use. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--meta-signing-key/classes/user-key-store.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-signing-key/classes/user-key-store.bbclass b/meta-signing-key/classes/user-key-store.bbclass
index d300f9d..aa027db 100644
--- a/meta-signing-key/classes/user-key-store.bbclass
+++ b/meta-signing-key/classes/user-key-store.bbclass
@@ -336,6 +336,10 @@ deploy_uefi_sb_keys() {
336 install -d "$deploy_dir" 336 install -d "$deploy_dir"
337 337
338 cp -af "${UEFI_SB_KEYS_DIR}"/* "$deploy_dir" 338 cp -af "${UEFI_SB_KEYS_DIR}"/* "$deploy_dir"
339 for KEY in DB KEK PK; do
340 openssl x509 -in "${UEFI_SB_KEYS_DIR}"/${KEY}.crt \
341 -out "$deploy_dir"/${KEY}.cer -outform DER;
342 done
339 fi 343 fi
340} 344}
341 345