Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load signer "signer #1" - java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException #837

Open
arunkjojo opened this issue Nov 17, 2023 · 2 comments

Comments

@arunkjojo
Copy link

arunkjojo commented Nov 17, 2023

Describe the bug
$ bubblewrap build
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | -' | -' | \ --| .'. | | \ '-' | '-' '
------' ----' ---' ---'--'----'--' '----' ----| |-' --'
Please, enter passwords for the keystore D:\project\ajoin\apps\android.keystore and alias android.

? Password for the Key Store: PASSWORD1
? Password for the Key: PASSWORD2

Building the Android App...

cli ERROR Command failed: C:\Users\arunk.bubblewrap\jdk\jdk-11.0.9.1+1\bin\java.exe -Xmx1024M -Xss1m -jar C:\Users\arunk.bubblewrap\android_sdk\build-tools\33.0.2\lib\apksigner.jar sign --ks D:\project\ajoin\apps\android.keystore --ks-key-alias android --ks-pass pass:PASSWORD1 --key-pass pass:PASSWORD2 --out ./app-release-signed.apk ./app-release-unsigned-aligned.apk
Failed to load signer "signer #1"
java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2167)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:362)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:248)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
at com.android.apksigner.ApkSignerTool.getSignerConfig(ApkSignerTool.java:419)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:336)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
Caused by: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
at java.base/javax.crypto.Mac.getInstance(Mac.java:191)
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2145)
... 8 more

Screenshots
Screenshot 2023-11-17 230727

@avovetisa
Copy link

I have the same issue

@EtienneLamoureux
Copy link

EtienneLamoureux commented May 27, 2024

I've worked around this issue by downloading jdk11.0.23_9 and pointing C:\Users\<user>\.bubblewrap\config.json to the new JDK. Then I run into #606, even from a clean run of the init command...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants