05 January 2012

Generate your own PKCS12 certificate for AIR

I know... it's another one about certificate but perhaps you'll need this like I did.
If you follow this blog, you know I'm in need for a +30years certificate.

Problem
Flash Builder wizard generate 25 years certificate only

Solution
generate the certificate myself!

Again, thanks to keytool :

keytool.exe -genkey -keyalg RSA -storetype pkcs12 -alias <your_key_alias> -keystore <certificate_file>.p12 -validity 12000

Enter your password when requested only and fill the questions to complete

Note the -validity value is waiting for a number of days (not years!) so 12000 is about 32 years