diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | b6c1cf6de79035f58b512f4400db458c8401379a (patch) | |
tree | 68979db37c85b499bc384e4ac337ed1424baab51 /target/product/security | |
download | build-b6c1cf6de79035f58b512f4400db458c8401379a.zip build-b6c1cf6de79035f58b512f4400db458c8401379a.tar.gz build-b6c1cf6de79035f58b512f4400db458c8401379a.tar.bz2 |
Initial Contribution
Diffstat (limited to 'target/product/security')
-rw-r--r-- | target/product/security/README | 38 | ||||
-rw-r--r-- | target/product/security/media.pk8 | bin | 0 -> 1216 bytes | |||
-rw-r--r-- | target/product/security/media.x509.pem | 27 | ||||
-rw-r--r-- | target/product/security/mkkey.sh | 15 | ||||
-rw-r--r-- | target/product/security/platform.pk8 | bin | 0 -> 1216 bytes | |||
-rw-r--r-- | target/product/security/platform.x509.pem | 27 | ||||
-rw-r--r-- | target/product/security/shared.pk8 | bin | 0 -> 1218 bytes | |||
-rw-r--r-- | target/product/security/shared.x509.pem | 27 | ||||
-rw-r--r-- | target/product/security/testkey.pk8 | bin | 0 -> 1217 bytes | |||
-rw-r--r-- | target/product/security/testkey.x509.pem | 27 |
10 files changed, 161 insertions, 0 deletions
diff --git a/target/product/security/README b/target/product/security/README new file mode 100644 index 0000000..b92693d --- /dev/null +++ b/target/product/security/README @@ -0,0 +1,38 @@ +The following commands were used to generate the test key pair: + + 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. + +The following standard test keys are currently included: + +testkey -- a generic key for packages that do not otherwise specify a key. +platform -- a test key for packages that are part of the core platform. +shared -- a test key for things that are shared in the home/contacts process. +media -- a test key for packages that are part of the media/download system. + +These test keys are used strictly in development, and should never be assumed +to convey any sort of validity. When $BUILD_SECURE=true, the code should not +honor these keys in any context. + + +signing using the openssl commandline (for boot/system images) +-------------------------------------------------------------- + +1. convert pk8 format key to pem format + % 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 + +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 diff --git a/target/product/security/media.pk8 b/target/product/security/media.pk8 Binary files differnew file mode 100644 index 0000000..a6db9ba --- /dev/null +++ b/target/product/security/media.pk8 diff --git a/target/product/security/media.x509.pem b/target/product/security/media.x509.pem new file mode 100644 index 0000000..98cd443 --- /dev/null +++ b/target/product/security/media.x509.pem @@ -0,0 +1,27 @@ +-----BEGIN CERTIFICATE----- +MIIEqDCCA5CgAwIBAgIJAPK5jmEjVyxOMA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD +VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g +VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE +AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe +Fw0wODA0MTUyMzQwNTdaFw0zNTA5MDEyMzQwNTdaMIGUMQswCQYDVQQGEwJVUzET +MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G +A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p +ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAw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6lupDSfV0ZWVQfk6AIKGoE= +-----END CERTIFICATE----- diff --git a/target/product/security/mkkey.sh b/target/product/security/mkkey.sh new file mode 100644 index 0000000..86744f6 --- /dev/null +++ b/target/product/security/mkkey.sh @@ -0,0 +1,15 @@ +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 + diff --git a/target/product/security/platform.pk8 b/target/product/security/platform.pk8 Binary files differnew file mode 100644 index 0000000..e27a393 --- /dev/null +++ b/target/product/security/platform.pk8 diff --git a/target/product/security/platform.x509.pem b/target/product/security/platform.x509.pem new file mode 100644 index 0000000..087f02e --- /dev/null +++ b/target/product/security/platform.x509.pem @@ -0,0 +1,27 @@ +-----BEGIN CERTIFICATE----- +MIIEqDCCA5CgAwIBAgIJALOZgIbQVs/6MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD +VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g +VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE +AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe +Fw0wODA0MTUyMjQwNTBaFw0zNTA5MDEyMjQwNTBaMIGUMQswCQYDVQQGEwJVUzET +MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G +A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm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17XOElatuWTG5QhdlxJG3L7aOCA29tYwgKdNHyLMozkPvaosVUz7fvpib1qSN1L +IC7alMarjdW4OZID2q4u1EYjLk/pvZYTlMYwDlE448/Shebk5INTjLixs1c= +-----END CERTIFICATE----- diff --git a/target/product/security/shared.pk8 b/target/product/security/shared.pk8 Binary files differnew file mode 100644 index 0000000..cf99acd --- /dev/null +++ b/target/product/security/shared.pk8 diff --git a/target/product/security/shared.x509.pem b/target/product/security/shared.x509.pem new file mode 100644 index 0000000..7f886a8 --- /dev/null +++ b/target/product/security/shared.x509.pem @@ -0,0 +1,27 @@ +-----BEGIN CERTIFICATE----- +MIIEqDCCA5CgAwIBAgIJAPKnM5a9OHZ6MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYD +VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g +VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE +AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe +Fw0wODA3MjMyMTU3NTlaFw0zNTEyMDkyMTU3NTlaMIGUMQswCQYDVQQGEwJVUzET +MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G +A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p +ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI +hvcNAQEBBQADggENADCCAQgCggEBAMjC2/0JSi30XD/xoy7SGAXscvxY0BeXG9D2 +tSwmLXCBnRkZZ+FY39Oix/Gz4OgM5UXXnShIIgIR64bw/YMS03tCDBE3UMyUYYro +cvSIZGO9xGJ8qgwEg8hkk+NRVXEXAzi/3MTNat3RwKLzX1zyTtPkBDo+WOKwXmZM +zeEry2dzX9bfEknDaeYlQrwKRynlORf1w4/6UtF7c8nHN5jdsY7UgVkIdVR+Zr/F +2spMJabrlg7ZaSNwnaMCumRstJazJehsXIsuejN3srvkx88zJUKRFj9okVKsCIVQ +yDxQj0v1rfCu1aLcoFg/mrCtF2UNt+6ksj/bRYhVR9D+q3IYOIkCAQOjgfwwgfkw +HQYDVR0OBBYEFMtMfizbs/CtqY2reZaNFy6dux7RMIHJBgNVHSMEgcEwgb6AFMtM +fizbs/CtqY2reZaNFy6dux7RoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE +CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH +QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG +CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAPKnM5a9OHZ6MAwGA1Ud +EwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBAECo0JaZeVnpF6NsRCRra6wrrgVD +fs2JeUEY94NHIDUtHG+KObCGmUL02mWYH6opUdM5cRKewZIdeVZxxSfW4knyUoKf +r1tZExAxHi3gllANVorUEUplbcNKjG9hBFOvwep5ktukqns/hUOm41wHKN53/pfu +rIN3H9DskPjkRJQ07gtgRXg+cMei5GAkkmDgA892CNw1Kkye9wbe9LJgUOl4ri// +16MyN4cBSRXrPMh0/MeprpMId8XIx9HC4qjuhjyJGA0YVc7bpADnukPMyqckPTl+ +fA6Ojk19T5K2u+rUnAzwGAae3coufi+0Zo2J2715UNDNJUGA+h6q/CpVb4Q= +-----END CERTIFICATE----- diff --git a/target/product/security/testkey.pk8 b/target/product/security/testkey.pk8 Binary files differnew file mode 100644 index 0000000..586c1bd --- /dev/null +++ b/target/product/security/testkey.pk8 diff --git a/target/product/security/testkey.x509.pem b/target/product/security/testkey.x509.pem new file mode 100644 index 0000000..e242d83 --- /dev/null +++ b/target/product/security/testkey.x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