How to create Android distribution certificate Use keytool to create a signing key: keytool -genkey -v -keystore redhat.keystore -alias rhmap -keyalg RSA -keysize 2048 -validity 10000 Export the java keystore key intp pkcs#12 format: keytool -importkeystore -srckeystore redhat.keystore -destkeystore rhmap.p12 -deststoretype PKCS12 -srcalias rhmap Extract the Distribution Certificate: openssl pkcs12 -in rhmap.p12 -nokeys -out rhmap-cert.pem Extract the Private Key openssl pkcs12 -in rhmap.p12 -nodes -nocerts -out rhmap-key.pem Private Key = rhmap-key.pem Certificate = rhmap-cert.pem