keytool usage sample script for Android keystore

1.Generate keystore
keytool -genkey -v -keystore [keystore filename] -alias Release -keysize 2048 -validity 10000 -keyalg RSA -dname "CN=[CNName], OU=Mobile Development, O=[AuthorName], L=[CityName], ST=[StateName], C=[CountryName]" -keypass [password] -storekey [Storekey]

2.List keys information in keystore
keytool -list -v -keystore [keystore filename] -storepass [password]
This entry was posted in Android development. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *