mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-01-12 01:00:15 +00:00
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>
This commit is contained in:
@@ -336,6 +336,10 @@ deploy_uefi_sb_keys() {
|
||||
install -d "$deploy_dir"
|
||||
|
||||
cp -af "${UEFI_SB_KEYS_DIR}"/* "$deploy_dir"
|
||||
for KEY in DB KEK PK; do
|
||||
openssl x509 -in "${UEFI_SB_KEYS_DIR}"/${KEY}.crt \
|
||||
-out "$deploy_dir"/${KEY}.cer -outform DER;
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user