制作环境:Windows7 + cygwin64
以下步骤在cygwin下操作
1、生成shared.priv.pem
openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out shared.priv.pem -nocrypt
2、生成pkcs12
openssl pkcs12 -export -in platform.x509.pem -inkey shared.priv.pem -out shared.pk12 -name androidreleasekey
3、生成release.keystore
keytool -importkeystore -deststorepass android -destkeypass android -destkeystore release.keystore -srckeystore shared.pk12 -srcstoretype PKCS12 -srcstorepass android -alias androidreleasekey