I'm sorry, I'm newbie in Java (I'm Angular developer), I have VS code and Android studio in my computer.
There is Google Utility www .gstatic. com/play-apps-publisher-rapid/signing-tool/prod/pepk-src.jar
and this utility show error
>java -version
java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
>java -jar E:\NativeScript\AndroidKeyStore\pepk.jar --keystore=E:\AndroidKeyStore\MyVault.jks --alias=Upload --output=E:\AndroidKeyStore\ExportedPivateKey.zip --include-cert --rsa-aes-encryption --encryption-key-path=E:\NativeScript\encryption_public_key.pem
Enter password for store 'MyVault.jks':
Enter password for key 'Upload':
Error: Unable to export or encrypt the private key
java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPWithSHA1AndMGF1Padding
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:574)
at com.google.wireless.android.vending.developer.sign ing.tools.extern.export.ExportEncryptedPrivateKeyT ool.encryptPrivateKeyWithCkmRsaAesKeyWrapEncryptio n(ExportEncryptedPrivateKeyTool.java:284)
at com.google.wireless.android.vending.developer.sign ing.tools.extern.export.ExportEncryptedPrivateKeyT ool.run(ExportEncryptedPrivateKeyTool.java:213)
at com.google.wireless.android.vending.developer.sign ing.tools.extern.export.ExportEncryptedPrivateKeyT ool.main(ExportEncryptedPrivateKeyTool.java:165)
Nobody understand why this error happens, only empty answer like this stackoverflow .com/questions/76516045/cannot-find-any-provider-supporting-rsa-none-oaepwithsha1andmgf1padding-when-t - update your Java to last version.
I have fresh version of any software in my computer and error still happens.
Also I check algorithm of my keystore - it cool and fresh
>keytool -list -v -keystore E:\AndroidKeyStore\MyVault.jks
Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: upload
Creation date: 14 Jun 2024
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
...
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 1
Maybe I need to debug this utility line by line to understand better what happens. But I'm not a Java developer. So, first question - do anybody see error why pepk.jar not working at all? And why nobody know answer to this simple question about standard Google utility?
And second question, I'm sorry for this stupid question - how I can debug line-by-line that JAR file - I unziped it and see that folder main/jdk1.11/org/bouncycastle/jcajce/provider/asymmetric/edec contains 4 providers. While Java engine don't attached it? Or attacked, but my JSX file used something other provider?