-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Bug description
I create keystore using keytool with JKS keystore type then upgraded to newest version PKCS#12. But my new key is not accepted when patching with morphe-cli.
I use JKS because its is only supported by apksigner built-in AndroidSDK build-tools
Error logs
java.io.IOException: Wrong version of key store.
at org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineLoad(Unknown Source)
at java.base/java.security.KeyStore.load(KeyStore.java:1473)
at app.morphe.library.ApkSigner.readKeyStore(ApkSigner.kt:82)
at app.morphe.library.ApkUtils.readPrivateKeyCertificatePairFromKeyStore(ApkUtils.kt:137)
at app.morphe.library.ApkUtils.signApk(ApkUtils.kt:163)
at app.morphe.cli.command.PatchCommand.run$lambda$3$0(PatchCommand.kt:392)
at app.morphe.cli.command.model.PatchingResultKt.addStepResult(PatchingResult.kt:24)
at app.morphe.cli.command.PatchCommand.run(PatchCommand.kt:389)
at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at picocli.CommandLine.execute(CommandLine.java:2174)
at app.morphe.cli.command.MainCommandKt.main(MainCommand.kt:12)Solution
No response
Additional context
No response
Acknowledgements
- I have checked all open and closed bug reports and this is not a duplicate.
- I have chosen an appropriate title.
Parsa307
Metadata
Metadata
Assignees
Labels
No labels