Create Android with signature 


February 10, 2011 14:01:41    Last update: February 10, 2011 14:02:06
These are the steps with openssl:
  1. openssl genrsa -out key.pem 1024
  2. openssl req -new -key key.pem -out request.pem
  3. openssl x509 -req -days 3650 -in request.pem -signkey key.pem -out certificate.pem
  4. openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt
  5. Sign with SignApk:
    java -w certificate.pem key.pk8

    Note the -w switch, which is required to generate the whole file signature, which Google verifies. Zip files created by jarsigner doesn't have the whole file signature and therefore, does not pass Google validation.
Share |
| Comment  | Tags