Skip to content

Commit c0cd90e

Browse files
committed
add script for generating signing keys
1 parent 1be5c81 commit c0cd90e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

generate-keys

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
devices=()
4+
5+
for device in ${devices[@]}; do
6+
mkdir -p keys/$device
7+
cd keys/$device
8+
CN=GrapheneOS
9+
../../development/tools/make_key releasekey "/CN=$CN/"
10+
../../development/tools/make_key platform "/CN=$CN/"
11+
../../development/tools/make_key shared "/CN=$CN/"
12+
../../development/tools/make_key media "/CN=$CN/"
13+
../../development/tools/make_key networkstack "/CN=$CN/"
14+
../../development/tools/make_key sdk_sandbox "/CN=$CN/"
15+
../../development/tools/make_key bluetooth "/CN=$CN/"
16+
openssl genrsa 4096 | openssl pkcs8 -topk8 -scrypt -out avb.pem
17+
../../external/avb/avbtool.py extract_public_key --key avb.pem --output avb_pkmd.bin
18+
cd ../..
19+
done

0 commit comments

Comments
 (0)