![]() ![]() Key has been generated, now you can simply get pem file using following commandĬ:\Program Files\Android\Android Studio\jre\bin> keytool -export -rfc -alias androidkey -file android_certificate.pem -keystore androidkey. (RETURN if same as keystore password): press enter if you want same password Is CN=FirstName LastName, OU=Mobile Development, O=your company name, L=CityName, ST=StateName, C=IN correct? What is the two-letter country code for this unit? ![]() What is the name of your State or Province? What is the name of your City or Locality? What is the name of your organizational unit? If you have more than one certificate in your JKS keystore, and you want to only export the certificate and key associated with one of the aliases, you can use the following variation: keytool -importkeystore -srckeystore foo.jks \Ĭommand summary - to compare JKS keystore to PEM file: keytool -keystore foo.jks -exportcert -alias foo | \Ĭ:\Program Files\Android\Android Studio\jre\bin> keytool -keystore androidkey.jks -genkeypair -alias androidkey (This last file can be split up into keys and certificates if you like.)Ĭommand summary - to create JKS keystore: keytool -keystore foo.jks -genkeypair -alias foo \Ĭommand summary - to convert JKS keystore into PKCS#12 keystore, then into PEM file: keytool -importkeystore -srckeystore foo.jks \ ![]()
0 Comments
Leave a Reply. |