-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign a firmware bundle with k1.pem (must be an EC P-256 private key) ``` mos create-fw-bundle -i build/fw.zip -o build/fw-signed.zip --sign-key=k1.pem ``` Multiple signatures can be added: ``` mos create-fw-bundle -i build/fw.zip -o build/fw-signed.zip --sign-key=k1.pem --sign-key=k2.pem --sign-key=k3.pem ``` Will add `sig`, `sig1` and `sig2`. Multiple signatures can be added: ``` mos create-fw-bundle -i build/fw.zip -o build/fw-signed.zip --sign-key=k1.pem --sign-key= --sign-key=k3.pem ``` Will add `sig` and `sig2` only. Generate keys using OpenSSL: ``` openssl ecparam -genkey -name prime256v1 -text -out k1.pem ``` Extract public portion as Base64 encoded DER: ``` openssl ec -in k1.pem -pubout -outform der | base64 -w 0 ```
- Loading branch information
Showing
3 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters