Hello Klaus, I vaguelly remember I had a similar problem in the past. After searching in stackoverflow, it was suggested to use the OpenJDK version of Java, rather than the Oracle's one.
I had used version 20.0.1. I still have the .tar file I downloaded back then, it is named "openjdk-20.0.1_macos-x64_bin.tar" - and I think it is this one: https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_macos-x64_bin.tar.gz So it might be worth giving it a try. Kind regards, Panos -- On Wed, 28 Aug 2024 at 09:38, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi friends, > > I really need your help, please, deadline is saturday! :-/ > > If someone who knows (at least a bit of) JAVA, could try this at home > see all my steps below, please send me a mail and I will send you the > "pepk.jar" file. Not sure if I can post it openly on my server. > > Many, many thanks in advance! > > > Desparately > > Klaus > > > Am 27.08.2024 um 21:52 schrieb Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>: > > > > Correction in the command: > > --signing-key-alias=upload-key-alias > > needs to be : > > --signing-key-alias=sehenkey > > > > But same errors. :-/ > > > >> Am 27.08.2024 um 21:19 schrieb Klaus major-k via use-livecode < > use-livecode@lists.runrev.com>: > >> > >> Hi Mark, > >> > >>> Am 27.08.2024 um 14:11 schrieb Mark Waddingham via use-livecode < > use-livecode@lists.runrev.com>: > >>> > >>> On 2024-08-27 13:06, Klaus major-k via use-livecode wrote: > >>>> > ------------------------------------------------------------------------------------ > >>>> java -jar pepk.jar --keystore=android_upload.keystore > --alias=sehenkey --output=output.zip > signing-keystore=android_upload.keystore > --signing-key-alias=upload-key-alias --rsa-aes -encryption > --encryption-key-path=upload_certificate.pem > >>> There's a missing `--` in front of `signing-keystore` - that's causing > the args error: > >>>> Error: Unable to parse the input: > [--keystore=android_upload.keystore, --alias=sehenkey, --output=output.zip, > signing-keystore=android_upload.keystore, > --signing-key-alias=upload-key-alias, --rsa-aes, -encryption, > --encryption-key-path=upload_certificate.pem] > >>>> java.lang.IllegalArgumentException: Invalid argument: > signing-keystore=android_upload.keystore > >>> > >>> Warmest Regards, > >>> > >>> Mark. > >> > >> thank you, but that was not it. > >> > >> Here is what Matthias got with the two -- > >> ------------------------------------------------------------ > >> java -jar pepk.jar --keystore=android_upload.keystore --alias=sehenkey > --output=output.zip --signing-keystore=android_upload.keystore > --signing-key-alias=upload-key-alias --rsa-aes-encryption > --encryption-key-path=upload_certificate.pem > > java -jar pepk.jar --keystore=android_upload.keystore --alias=sehenkey > --output=output.zip --signing-keystore=android_upload.keystore > --signing-key-alias=sehenkey --rsa-aes-encryption > --encryption-key-path=upload_certificate.pem > >> Enter password for store 'android_upload.keystore': > >> Enter password for key 'sehenkey': > >> Error: Unable to export or encrypt the private key > >> java.security.spec.InvalidKeySpecException: > java.security.InvalidKeyException: Unable to decode key > >> at > java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:241) > >> at > java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:351) > >> at > com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.readPublicKey(ExportEncryptedPrivateKeyTool.java:309) > >> at > com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.encryptPrivateKeyWithCkmRsaAesKeyWrapEncryption(ExportEncryptedPrivateKeyTool.java:283) > >> at > com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.run(ExportEncryptedPrivateKeyTool.java:213) > >> at > com.google.wireless.android.vending.developer.signing.tools.extern.export.ExportEncryptedPrivateKeyTool.main(ExportEncryptedPrivateKeyTool.java:165) > >> Caused by: java.security.InvalidKeyException: Unable to decode key > >> at java.base/sun.security.x509.X509Key.decode(X509Key.java:368) > >> at java.base/sun.security.x509.X509Key.decode(X509Key.java:374) > >> at > java.base/sun.security.rsa.RSAPublicKeyImpl.<init>(RSAPublicKeyImpl.java:148) > >> at > java.base/sun.security.rsa.RSAPublicKeyImpl.newKey(RSAPublicKeyImpl.java:80) > >> at > java.base/sun.security.rsa.RSAKeyFactory.generatePublic(RSAKeyFactory.java:324) > >> at > java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:237) > >> ... 5 more > >> Caused by: java.io.IOException: DerValue.getOID, not an OID 2 > >> at java.base/sun.security.util.DerValue.getOID(DerValue.java:552) > >> at > java.base/sun.security.util.DerInputStream.getOID(DerInputStream.java:165) > >> at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:398) > >> at java.base/sun.security.x509.X509Key.decode(X509Key.java:361) > >> ... 10 more > >> ------------------------------------------------------------ > >> :-( > >> > >> Any ideas? > >> > >> > >> Best > >> > >> Klaus > >> -- > >> Klaus Major > >> https://www.major-k.de > >> https://www.major-k.de/bass > >> kl...@major-k.de > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > -- > > Klaus Major > > https://www.major-k.de > > https://www.major-k.de/bass > > kl...@major-k.de > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode