remove mkkey.sh from build
Update README with instructions on using the new make_key script instead.
This commit is contained in:
parent
8c1eeffe43
commit
9b3c88e19f
2 changed files with 7 additions and 26 deletions
|
@ -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
|
||||
you'll see it running $(HOST_OUT_JAVA_LIBRARIES)/dumpkey.jar
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue