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.

Flash Builder wizard generate 25 years certificate only

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

1 comment:

sparta-ratsa said...

hi guys
im a beginner with flex mobile. i create an application that allow to retrieve a data from server (apache tomcat secured). when i run with flash builder emuulator it worked successfully. i get teh certificate and i connect to the server. but when i try to run on android emulator. i can't connect to remote server i have this error message 'ChannelConnect.Failed error NetConnection.Call.Failed : HTTP: url:'' however i get the certificat !!!!!