Generating a PKCS12 certificate for Android Market
1:14 PM Posted by Sanjay
"Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate."
This is a requirement which I had overlooked. By default, creating a certificate via Flash Builder (File > Export > Release Build) will not work as it is not valid for the length required by the Android Marketplace.
I set out to make a proper certificate however there was not a lot of very current information available. After a lot of searching, I found the answer right in front of me. Using the AIR 2.5 SDK, you can create a self signed certificate using the line command tool. If you have the same issue, follow these instructions:
- If not done already, download and save the Adobe AIR 2.5 SDK from http://www.adobe.com/products/air/sdk/
- With a line command tool, navigate to the /bin directory.
- Copy and paste the following command, replacing the values in braces with your own values.
./adt -certificate -cn (duaneallannickull) -ou (adobesystems) -o (sharkwithfrigginglaserbeamsinc) -c (CA) -validityPeriod 25 2048-RSA (./androidsigner.p12) (password) - The country code must be in upper case characters and correspond to an ISO country code. For example, this is what I entered to create mine:
./adt -certificate -cn duaneallannickull -ou adobesystems -o sharkwithfrigginglaserbeamsinc -c CA -validityPeriod 25 2048-RSA ./androidsigner.p12 password - Now enter the command "dir" (Windows) or "ls" (Linux || Unix) and you should see your certificate. A screenshot is below.



April 28, 2011 at 1:16 PM
SOURCE:
http://technoracle.blogspot.com/2010/12/generating-pkcs12-certificate-for.html