From 9b3c88e19fb29ba3227f32fbf58fec4516ec9855 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 1 Dec 2009 12:42:30 -0800 Subject: [PATCH] remove mkkey.sh from build Update README with instructions on using the new make_key script instead. --- target/product/security/README | 18 +++++++----------- target/product/security/mkkey.sh | 15 --------------- 2 files changed, 7 insertions(+), 26 deletions(-) delete mode 100644 target/product/security/mkkey.sh diff --git a/target/product/security/README b/target/product/security/README index b92693d15b..24f984c59c 100644 --- a/target/product/security/README +++ b/target/product/security/README @@ -1,13 +1,9 @@ -The following commands were used to generate the test key pair: +The following commands were used to generate the test key pairs: - openssl genrsa -3 -out testkey.pem 2048 - - openssl req -new -x509 -key testkey.pem -out testkey.x509.pem -days 10000 \ - -subj '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' - - openssl pkcs8 -in testkey.pem -topk8 -outform DER -out testkey.pk8 -nocrypt - -Alternatively you can use the "mkkey.sh" command included in this directory. + development/tools/make_key testkey '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' + development/tools/make_key platform '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' + development/tools/make_key shared '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' + development/tools/make_key media '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' The following standard test keys are currently included: @@ -28,11 +24,11 @@ signing using the openssl commandline (for boot/system images) % openssl pkcs8 -inform DER -nocrypt -in testkey.pk8 -out testkey.pem 2. create a signature using the pem format key - % openssl dgst -binary -sha1 -sign testkey.pem FILE > FILE.sig + % openssl dgst -binary -sha1 -sign testkey.pem FILE > FILE.sig extracting public keys for embedding ------------------------------------ it's a Java tool but it generates C code take a look at commands/recovery/Android.mk -you'll see it running $(HOST_OUT_JAVA_LIBRARIES)/dumpkey.jar \ No newline at end of file +you'll see it running $(HOST_OUT_JAVA_LIBRARIES)/dumpkey.jar diff --git a/target/product/security/mkkey.sh b/target/product/security/mkkey.sh deleted file mode 100644 index 86744f6af6..0000000000 --- a/target/product/security/mkkey.sh +++ /dev/null @@ -1,15 +0,0 @@ -if ["$1" == ""]; then - echo "Create a test certificate key." - echo "Usage: $0 NAME" - echo "Will generate NAME.pk8 and NAME.x509.pem" - echo " /C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com" - return -fi - -openssl genrsa -3 -out $1.pem 2048 - -openssl req -new -x509 -key $1.pem -out $1.x509.pem -days 10000 \ - -subj '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' - -openssl pkcs8 -in $1.pem -topk8 -outform DER -out $1.pk8 -nocrypt -