This is just one example of how to create a self-signed p12 cert using ADT, maybe it helps:
flex-sdk\bin> ./adt -certificate -cn SelfSign -ou XY -o "YourOrganization" -c DE -validityPeriod 2 2048-RSA yourCertName.p12 yourSecretPassword -- Sent from: http://apache-flex-users.2333346.n4.nabble.com/