Android Question Play app signing help needed please

tsteward

Well-Known Member
Licensed User
Longtime User
My app is existing.
I created a bundle for the first time and tried uploading to get the following message and could not proceed.
Capture.JPG


I downloaded pepk.jar to c:\
I copied my key file tonyxxxx.keystore to c:\
just for simplicity

I run and get the following error:
C:\>java -jar pepk.jar --keystore=TonysKey.keystore --alias=b4a --output=c:\ --encryptionkey=*********************************************
Enter password for store 'TonysKey.keystore':
Enter password for key 'b4a':
Error: Unable to export or encrypt the private key
java.security.UnrecoverableKeyException: Cannot recover key
at sun.security.provider.KeyProtector.recover(Unknown Source)
at sun.security.provider.JavaKeyStore.engineGetKey(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineGetKey(Unknown Source)
at sun.security.provider.KeyStoreDelegator.engineGetKey(Unknown Source)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(Unknown Source)
at java.security.KeyStore.getKey(Unknown Source)
at com.google.wireless.android.vending.developer.signing.tools.extern.export.KeystoreHelper.extractPrivateKey(KeystoreHelper.java:63)
at com.google.wireless.android.vending.developer.signing.tools.extern.export.KeystoreHelper.getPrivateKey(KeystoreHelper.java:35)
at com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.run(ExportEncryptedPrivateKeyTool.java:167)
at com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.main(ExportEncryptedPrivateKeyTool.java:130)
 

tsteward

Well-Known Member
Licensed User
Longtime User
Yes have looked there, have looked at tutorial, have searched and read as much as I could but can not find result.
I know I am using correct password for my keystore. If I use wrong password it doesn't go on to ask for second password for b4a

I'm stumped
I've also looked elsewhere this is the latest command I tried with same result.
C:\>java -jar "c:\pepk.jar" --keystore="c:\TonysKey.keystore" --alias=b4a --output="c:\larakey.pem" --encryptionkey=eb10fe8f7c7c9df71....
 
Last edited:
Upvote 0
Top