I moved to the directory where keytool.exe is in C:/Program files/Java/jre1.7.0_79/bin by cd command and then tried to open Keytool.exe by "start Keytool.exe" command and it didn't open at all and sometimes opened for a millisecond and close automatically.
Tim Moores wrote:Keytool can't be run by double clicking it. What did you type in on the command line, and what exactly was the result?
Thanks it worked and I went a step ahead this time but again stuck at the last step when keystore was about to be generated:
Tapas Chand wrote:Keytool will not be run by "start keytool.exe" command.
You have to run it by the command "keytool" itself.
for all options run the following command.
enerating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days
for: CN=Ahmed Jadoon, OU=XXX, O=XXXX, L=Abbottabad, ST=KPK, C=PK
keytool error: java.io.FileNotFoundException: debug.keystore (Access is denied)
java.io.FileNotFoundException: debug.keystore (Access is denied)
at java.io.FileOutputStream.open(Native Method)
According to app documentations
I don't know where I went wrong
Create a hash key for your certificate using the following command: keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64