danielpassos
2/17/2016 - 7:24 PM

How to create Android distribution certificate

How to create Android distribution certificate

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
  1. Private Key = rhmap-key.pem
  2. Certificate = rhmap-cert.pem