Skip to content

Generating the custom ECDSA Key Pair for image signing and encryption using openssl #1481

Answered by utzig
xianghui-renesas asked this question in Q&A
Discussion options

You must be logged in to vote

Can you explain the difference in the format? Are both ok to be used with MCUboot?

OpenSSL encodes its keys in SEC1 format, while MCUboot uses PKCS#8. You can convert your generated key from the step above with this extra step:

openssl pkcs8 -nocrypt -topk8 -in my_ecc_secp256r1_key.pem -out my_ecc_secp256r1_pkcs8_key.pem

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xianghui-renesas
Comment options

Answer selected by xianghui-renesas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants