9

What is PEM file & Pk8 file . Where can i find these for android apk. I need to use this to sign apk manually through SignApk.jar.

java -jar SignApk.jar certificate.pem key.pk8 PlatformOne.apk pf1.apk

This tool has integrated pem file & pk8 file. but i need my own private key signing.

Gayan Dinuzhka
  • 331
  • 2
  • 5
  • 16

3 Answers3

10

The whole procedure looks very well explained here How to Sign Android APK or Zip Files

Rover Wanderer
  • 422
  • 3
  • 8
3

Go to your device rom. Here you will find etc named folder. Then open it and now you will find a folder named security. Open that now. You will find a zip file named otacerts.zip. Open that now and you will find your pem file

ascripter
  • 5,665
  • 12
  • 45
  • 68
manish
  • 31
  • 1
1

The link in Rover Wanderer answer How to Sign Android APK or Zip Files details how to make and use pem and pk8 files. I will add here the answer to unanswered part: "What is PEM file & Pk8 file".

pem file is explained in good detail here (https://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-file). In couple of words certificate.pemis a container format file that in our example would include public certificate.

pk8 is a format used to carry private certificate keypairs (Wikipedia on PKCS).

Alex Martian
  • 3,423
  • 7
  • 36
  • 71