Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to sign with pem and pk8? #4

Open
david8557 opened this issue Aug 27, 2017 · 2 comments
Open

How to sign with pem and pk8? #4

david8557 opened this issue Aug 27, 2017 · 2 comments

Comments

@david8557
Copy link

I see in original apksigner, it has support sign apk with these 2 files. Can you add support for it please?

@patrickfav
Copy link
Owner

I'll see what I can do, I will keep you updated.

@xvortex
Copy link

xvortex commented Jun 1, 2020

To convert .pk8/.pem into the keystore do following (example for platform.pk8/platform.x509.pem):

openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out platform.priv.pem -nocrypt
openssl pkcs12 -export -in platform.x509.pem -inkey platform.priv.pem -out platform.pk12 -name android
keytool -importkeystore -destkeystore platform.jks -srckeystore platform.pk12 -srcstoretype PKCS12 -srcstorepass android -alias android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants