-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script for generating signing keys
- Loading branch information
1 parent
1be5c81
commit c0cd90e
Showing
1 changed file
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
devices=() | ||
|
||
for device in ${devices[@]}; do | ||
mkdir -p keys/$device | ||
cd keys/$device | ||
CN=GrapheneOS | ||
../../development/tools/make_key releasekey "/CN=$CN/" | ||
../../development/tools/make_key platform "/CN=$CN/" | ||
../../development/tools/make_key shared "/CN=$CN/" | ||
../../development/tools/make_key media "/CN=$CN/" | ||
../../development/tools/make_key networkstack "/CN=$CN/" | ||
../../development/tools/make_key sdk_sandbox "/CN=$CN/" | ||
../../development/tools/make_key bluetooth "/CN=$CN/" | ||
openssl genrsa 4096 | openssl pkcs8 -topk8 -scrypt -out avb.pem | ||
../../external/avb/avbtool.py extract_public_key --key avb.pem --output avb_pkmd.bin | ||
cd ../.. | ||
done |