Convert from source code file to KeyStore

Source: Internet
Author: User

 

1.android Source directory build\target\product\security take platform.pk8 Platform.x509.pem into a directory

E:\sign\convert_keystore>ls

Platform.pk8 Platform.x509.pem

2. Convert the private key in the PKCS8 format to the PKCS12 format:

E:\sign\convert_keystore>openssl pkcs8-in platform.pk8-inform der-outform pem-out shared.priv.pem-nocrypt

E:\sign\convert_keystore>ls

Shared.priv.pem Platform.pk8 Platform.x509.pem

3. Convert the X509.PEM public key to the PKCS12 format:

e:\sign\convert_keystore> OpenSSL pkcs12-export-in platform.x509.pem-inkey shared.priv.pem-out shared.pk12-name A Ndroiddebugkey

Enter Export Password: (Password Android)

Verifying-enter Export Password: (Password Android)

E:\sign\convert_keystore>ls

Shared.priv.pem platform.pk8 Platform.x509.pem shared.pk12

4. Generate Debug.keystore

e:\sign\convert_keystore>keytool-importkeystore-deststorepass android-destkeypass Android-destke Ystore Debug.keystore-srckeystore shared.pk12

-srcstoretype pkcs12-srcstorepass Android-alias and Roiddebugkey

E:\sign\convert_keystore>ls

Convert Debug.keystore platform.pk8 platform.x509.pem shared.pk12 Shared.priv.pem

5.eclipse windows/preferences/android/build Set "Custom debug KeyStore" for the KeyStore just generated

Converted from source code file to KeyStore

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.