Public key of Android project and keystore created in Eclipse?

Posted by user578056 on Stack Overflow See other posts from Stack Overflow or by user578056
Published on 2011-01-17T04:48:52Z Indexed on 2011/01/17 4:53 UTC
Read the original article Hit count: 521

Filed under:
|
|
|

I created an Android project using Eclipse (under Windows FWIW) and let Eclipse create the keypair during the Export Android Application process. I successfully used Eclipse to make a signed release build that is now on the Market.

Now I want to now use ProGuard, which I believe means using Ant instead of Eclipse to build. It was a pain, but Ant building works in both debug and release, until it tries to sign the APK. I get:

[signjar] jarsigner: Certificate chain not found for: redacted.  redacted must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

keytool -list -keystore redacted gives me:

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 1 entry

redacted, Jan 16, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): BD:0F:70:C1:39:F5:FE:5B:BC:CD:89:0B:C8:66:95:E0

Which brings me to the actual question: where is my public key? I have some sort of public key on my Android Market profile, but is that the pair for my private key? If so, how do I store that in the keystore so that jarsigner will work?

© Stack Overflow or respective owner

Related posts about android

Related posts about eclipse