diff options
author | Tom Rini <trini@konsulko.com> | 2018-10-25 10:37:34 -0400 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-10-25 23:03:40 +0800 |
commit | bf314c0d0c9d38c3d4b8ab4fb0cdfd77cddfa59e (patch) | |
tree | 497eca7408d80933d4e6895a74dd35e964c03e25 | |
parent | bd155539ec1677148ff516249e33890953fe763b (diff) | |
download | meta-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.bbclass | 4 |
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 | ||