Still problems with creating the neccessary file for keystore reset (Lengthy mail)

Klaus major-k klaus at major-k.de
Tue Aug 27 15:19:10 EDT 2024


Hi Mark,

> Am 27.08.2024 um 14:11 schrieb Mark Waddingham via use-livecode <use-livecode at 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
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
klaus at major-k.de




More information about the use-livecode mailing list