From 782c99acddaf599085a6766e4fd60d8a16e9ad5a Mon Sep 17 00:00:00 2001 From: r3g_5z Date: Mon, 19 Dec 2022 18:18:59 -0500 Subject: [PATCH] Use a variable for the certificate Common Name instead Signed-off-by: r3g_5z --- static/build.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/static/build.html b/static/build.html index 7a6a436e..54b2be2a 100644 --- a/static/build.html +++ b/static/build.html @@ -654,13 +654,14 @@ vendor/adevtool/bin/run ota-firmware vendor/adevtool/config/DEVICE.ym
mkdir -p keys/raven
 cd keys/raven
-../../development/tools/make_key releasekey '/CN=GrapheneOS/'
-../../development/tools/make_key platform '/CN=GrapheneOS/'
-../../development/tools/make_key shared '/CN=GrapheneOS/'
-../../development/tools/make_key media '/CN=GrapheneOS/'
-../../development/tools/make_key networkstack '/CN=GrapheneOS/'
-../../development/tools/make_key sdk_sandbox '/CN=GrapheneOS/'
-../../development/tools/make_key bluetooth '/CN=GrapheneOS/'
+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 extract_public_key --key avb.pem --output avb_pkmd.bin
 cd ../..