I run cli and on signing process get exception:
org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$BCKeyStoreException: java.io.IOException: Error initialising store of key store: java.lang.SecurityException: JCE cannot authenticate the provider BC
at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineSetKeyEntry(Unknown Source)
at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1195)
at app.revanced.utils.signing.Signer.newKeystore(Signer.kt:29)
at app.revanced.utils.signing.Signer.signApk(Signer.kt:58)
at app.revanced.cli.signing.Signing.sign(Signing.kt:10)
at app.revanced.cli.command.MainCommand.run(MainCommand.kt:168)
at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at app.revanced.cli.main.MainKt.main(Main.kt:7)
Caused by: java.io.IOException: Error initialising store of key store: java.lang.SecurityException: JCE cannot authenticate the provider BC
at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.makePBECipher(Unknown Source)
at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$StoreEntry.(Unknown Source)
... 15 more
Type
Error at runtime
Bug description
I run cli and on signing process get exception: org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$BCKeyStoreException: java.io.IOException: Error initialising store of key store: java.lang.SecurityException: JCE cannot authenticate the provider BC at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineSetKeyEntry(Unknown Source) at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1195) at app.revanced.utils.signing.Signer.newKeystore(Signer.kt:29) at app.revanced.utils.signing.Signer.signApk(Signer.kt:58) at app.revanced.cli.signing.Signing.sign(Signing.kt:10) at app.revanced.cli.command.MainCommand.run(MainCommand.kt:168) at picocli.CommandLine.executeUserObject(CommandLine.java:2026) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at app.revanced.cli.main.MainKt.main(Main.kt:7) Caused by: java.io.IOException: Error initialising store of key store: java.lang.SecurityException: JCE cannot authenticate the provider BC at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.makePBECipher(Unknown Source) at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$StoreEntry.(Unknown Source)
... 15 more
Steps to reproduce
Run command
java -jar revanced-cli.jar -a youtube.apk -c -o revancedYoutube.apk -b patches.jar -m integrations.apk -i client-spoof -i custom-video-buffer -i custom-video-speed -i disable-startup-shorts-player -i downloads -i general-ads -i hide-watermark -i microg-support -i minimized-playback -i premium-heading -i remember-video-quality -i old-quality-layout -i return-youtube-dislike -i settings -i sponsorblock -i tablet-mini-player -i video-ads -i custom-branding
Relevant log output
Screenshots or videos
Solution
No response
Additional context
I use Windows 11 21H2 home for one language.
Acknowledgements