diff --git a/static/build.html b/static/build.html
index c54d2aa0..0be5077d 100644
--- a/static/build.html
+++ b/static/build.html
@@ -441,7 +441,7 @@ cd keys/crosshatch
../../development/tools/make_key shared '/CN=GrapheneOS/'
../../development/tools/make_key media '/CN=GrapheneOS/'
../../development/tools/make_key networkstack '/CN=GrapheneOS/'
-openssl genrsa -out avb.pem 2048
+openssl genrsa 2048 | openssl pkcs8 -topk8 -scrypt -out avb.pem
../../external/avb/avbtool extract_public_key --key avb.pem --output avb_pkmd.bin
cd ../..