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

[Android] Support for ".keystore" certificates #191

Open
shamruk opened this issue Jul 17, 2015 · 5 comments
Open

[Android] Support for ".keystore" certificates #191

shamruk opened this issue Jul 17, 2015 · 5 comments

Comments

@shamruk
Copy link

shamruk commented Jul 17, 2015

The error is "could not load keystore file (password may be incorrect)".
Strange thing is that store-type is pkcs12 witch is wrong for android, it should be "JKS" or other applicable type. From logs:

adt args: -storetype
adt args: pkcs12

My config:

air {
    storepass '*********'
    keystore '../../certificates/MCM.keystore'
    applicationDescriptor '../../MCM.App/MCM_Amazon.xml'
    includeFileTrees = [
            fileTree(dir: '...../Static/', include: ['icons/*'])
    ]
}
airMobile {
    target = 'apk-captive-runtime'
}

Looks that I am missing something here

@SlevinBE
Copy link
Member

Haven't done anything with AIR on mobile for a long while, but when I look at this official documentation it seems like pkcs12 is still the default for packaging/signing an Android app (combined with using a p12 keystore file): http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac-4f1413de12cd45ccc23-8000.html?utm_source=dlvr.it&utm_medium=feed

Since it's hardcoded inside GradleFx, pkcs12 is the only supported keystore format at this moment.

@shamruk
Copy link
Author

shamruk commented Jul 17, 2015

I have used Android tools to make a certificates and JKS was default there. Here is the description of the arg http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7f72.html .
It would be really great to see this option in next version.

@SlevinBE
Copy link
Member

I've changed the title of this issue to make it a feature request. I'll take it into consideration.
For now though, you can probably just convert your ".keystore" certificate to a p12 one as mentioned here: http://stackoverflow.com/questions/2846828/converting-jks-to-p12

@SlevinBE SlevinBE changed the title How do I sign Android app? [Android] Support for ".keystore" certificates Jul 17, 2015
@shamruk
Copy link
Author

shamruk commented Jul 18, 2015

thank you, i will try it

@shamruk
Copy link
Author

shamruk commented Nov 24, 2015

converted it to p12 and it works fine ever since

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

2 participants