APK signing problem

  • Hello, I had a problem, after completing filling out all the items in the APK signing window, where indicated: keystore, key name, key store password and key password, an error appears after a while.

    I tried many times, even tried through another computer and still an error.

    These errors appear:

    1.

    Error: Failed to load signer "signer #1"

    java.io.IOException: keystore password was incorrect

    at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2059)

    at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:238)

    at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)

    at java.security.KeyStore.load(KeyStore.java:1445)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:613)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:555)

    at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:509)

    at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:215)

    at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)

    Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

    ... 9 more

    2.

    Error: Failed to load signer "signer #1"

    java.io.IOException: Failed to obtain key with alias "greeballkeystore" from tmp/7063b6fc-96a3-4436-bedc-53d333d6b03f. Wrong password?

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:690)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:555)

    at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:509)

    at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:215)

    at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)

    Caused by: java.security.UnrecoverableKeyException: Get Key failed: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

    at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:435)

    at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)

    at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)

    at java.security.KeyStore.getKey(KeyStore.java:1023)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:663)

    ... 4 more

    Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

    at com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:975)

    at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1056)

    at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853)

    at com.sun.crypto.provider.PKCS12PBECipherCore.implDoFinal(PKCS12PBECipherCore.java:405)

    at com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede.engineDoFinal(PKCS12PBECipherCore.java:437)

    at javax.crypto.Cipher.doFinal(Cipher.java:2164)

    at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:371)

    ... 8 more

  • Did you try to list all the keys to see if that key name is included?

    keytool -list -keystore {path to keystore} -storepass {password} -v

    Maybe the name you are providing is not right?

  • Key alias?

  • Key alias should be Key name... check with that tool I told you and see the list, it will give you the correct names/aliases

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's telling you that you entered the wrong password:

    java.io.IOException: keystore password was incorrect

  • Please tell me how to write the password correctly, is it possible to write there only in letters or do you need a combination with numbers?

  • Is there a possible problem signing APK due to the fact that I imported the project from Construct 2?

  • Is there a possible problem signing APK due to the fact that I imported the project from Construct 2?

    nope i dont think so because i just got this problem and i saved my password and i am 100% there is nothing wrong with my password and still i cant download my apk file sadly

  • Error: Failed to load signer "signer #1"

    java.io.IOException: keystore password was incorrect

    at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2059)

    at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:238)

    at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71)

    at java.security.KeyStore.load(KeyStore.java:1445)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCertsFromKeyStore(ApkSignerTool.java:613)

    at com.android.apksigner.ApkSignerTool$SignerParams.loadPrivateKeyAndCerts(ApkSignerTool.java:555)

    at com.android.apksigner.ApkSignerTool$SignerParams.access$200(ApkSignerTool.java:509)

    at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:215)

    at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)

    Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

    ... 9 more

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)