To list the contents of a keystore file
keytool -list -keystore .keystore
To list the contents of a specific alias
keytool -list -keystore .keystore -alias foo
To generate a key
keytool -genkey -keystore <file> -alias <alias / app name> -validity 10000
To change the name of an alias
keytool -changealias -keystore <file> -alias <old_alias> -destalias <new_alias>