trustfence: stm: fix PKI generation for CCMP13 platform
The KeyGen tool to generate 8 key pairs requires 8 consecutive passwords, however, when the shell expands the passwords variable, it interprets it as a single string instead of 8 different strings and fails. Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
fd6d797eae
commit
a8809e68c7
|
|
@ -64,7 +64,7 @@ if [ "${PLATFORM}" = "ccmp15" ]; then
|
||||||
# Random password
|
# Random password
|
||||||
password="$(openssl rand -base64 32)"
|
password="$(openssl rand -base64 32)"
|
||||||
echo "Generating random key"
|
echo "Generating random key"
|
||||||
STM32MP_KeyGen_CLI -abs "${CONFIG_SIGN_KEYS_PATH}/keys/" -pwd "${password}" -n 1
|
STM32MP_KeyGen_CLI -abs "${CONFIG_SIGN_KEYS_PATH}/keys/" -pwd ${password} -n 1
|
||||||
echo "${password}" > "${KEY_PASS_FILE}"
|
echo "${password}" > "${KEY_PASS_FILE}"
|
||||||
fi
|
fi
|
||||||
elif [ "${PLATFORM}" = "ccmp13" ]; then
|
elif [ "${PLATFORM}" = "ccmp13" ]; then
|
||||||
|
|
@ -76,7 +76,7 @@ elif [ "${PLATFORM}" = "ccmp13" ]; then
|
||||||
passwords="${passwords} $(openssl rand -base64 32)"
|
passwords="${passwords} $(openssl rand -base64 32)"
|
||||||
done
|
done
|
||||||
echo "Generating random keys"
|
echo "Generating random keys"
|
||||||
STM32MP_KeyGen_CLI -abs "${CONFIG_SIGN_KEYS_PATH}/keys/" -pwd "${passwords}" -n 8
|
STM32MP_KeyGen_CLI -abs "${CONFIG_SIGN_KEYS_PATH}/keys/" -pwd ${passwords} -n 8
|
||||||
echo "${passwords}" > "${KEY_PASS_FILE}"
|
echo "${passwords}" > "${KEY_PASS_FILE}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue