niklashigi / apk-mitm

🤖 A CLI application that automatically prepares Android APK files for HTTPS inspection
https://npm.im/apk-mitm
MIT License
4k stars 353 forks source link

Failed to load signer "signer #1" #115

Open SmartManoj opened 2 years ago

SmartManoj commented 2 years ago

java.io.IOException: Invalid keystore format at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:663) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56) at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224) at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70) at java.security.KeyStore.load(KeyStore.java:1445) at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:353) at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:239) at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181) at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:277) at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83) at at.favre.tools.apksigner.SignTool.sign(SignTool.java:314) at at.favre.tools.apksigner.SignTool.execute(SignTool.java:150) at at.favre.tools.apksigner.SignTool.mainExecute(SignTool.java:45) at at.favre.tools.apksigner.SignTool.main(SignTool.java:33)

signing.failed.log

SmartManoj commented 2 years ago

https://github.com/r0adkll/sign-android-release/issues/1

hungntv commented 1 year ago

I got the same issue.

Did you find a solution? @SmartManoj

Failed to load signer "signer #1"
java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
        at sun.security.provider.KeyStoreDelegator.engineLoad(Unknown Source)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(Unknown Source)
        at java.security.KeyStore.load(Unknown Source)
        at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:353)
        at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:239)
        at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
        at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:277)
        at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83)
        at at.favre.tools.apksigner.SignTool.sign(SignTool.java:314)
        at at.favre.tools.apksigner.SignTool.execute(SignTool.java:150)
        at at.favre.tools.apksigner.SignTool.mainExecute(SignTool.java:45)
        at at.favre.tools.apksigner.SignTool.main(SignTool.java:33)