Can I generate keystore from jks or pem file
If you have reset your upload key, you must have already created a keystore as part of that operation. You should use that keystore to sign your app from now on.
You cannot recreate the keystore from the pem file, but the jks file is the keystore, so reference this file in your signing config.