Want to generate apk with existing keystore but without key password

Hi,
I generate keystore .jks file using java keytools but they asked keystore password and alias but did not asked for key password. But when I am going to build with expo build:android -c they asked keystore path keystore password which I have and also asked key password which I do not have. Please help me I already send the .pem file to google play console support for reset the key of my existing app which I want to update and they already reset the key, so I have to generate the apk without alias key password. What to do?

In some cases keytool generates by default keystore in pkcs format instead jks
Verify this with

keytool -list -keystore [keystore_name]

if listed type is pkcs you can convert pkcs to jks with (where .p12 file is your curren keystore and .jks new one)

keytool -importkeystore -srckeystore [MY_FILE.p12] -srcstoretype pkcs12
 -srcalias [ALIAS_SRC] -destkeystore [MY_KEYSTORE.jks]
 -deststoretype jks -deststorepass [PASSWORD_JKS]  -destkeypass [PASSWORD_KEY] -destalias [ALIAS_DEST]

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.