Android SignAPK - PEM 文件和 PK8 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25806433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 09:44:16  来源:igfitidea点击:

SignAPK - PEM file AND PK8 file

androidapksignpem

提问by Gayan Dinuzhka

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.

什么是 PEM 文件和 Pk8 文件。我在哪里可以找到这些用于 android apk。我需要使用它通过 SignApk.jar 手动签署 apk。

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

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.

该工具集成了 pem 文件和 pk8 文件。但我需要我自己的私钥签名。

回答by Rover Wanderer

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

整个过程看起来很好解释这里如何签署 Android APK 或 Zip 文件

回答by manish

Go to your device rom. Here you will find etcnamed 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 pemfile

转到您的设备 rom。在这里你会找到etc命名文件夹。然后打开它,现在你会发现一个名为security. 现在打开那个。您将找到一个名为 .zip 的 zip 文件otacerts.zip。现在打开它,你会找到你的pem文件

回答by Alexei Martianov

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

在路虎流浪者的答案的链接如何注册的Android APK或ZIP文件详细说明了如何制造和使用pempk8文件。我将在此处添加未回答部分的答案:“什么是 PEM 文件和 Pk8 文件”

pemfile 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 publiccertificate.

pem文件在此处详细解释(https://serverfault.com/questions/9708/what-is-a-pem-file-and-how-does-it-differ-from-other-openssl-generated-key-文件)。简而言之certificate.pem是一个容器格式文件,在我们的示例中将包含public证书。

pk8is a format used to carry privatecertificate keypairs (Wikipedia on PKCS).

pk8是一种用于携带private证书密钥的格式(PKCS 上的维基百科)。