Hello.
I signed an apk in advance and uploaded it to the PlayStore. Now I want to update my application. But I get the error. The problem is probably related to JDK. I've tried with all JDK versions and failed. The error I got is:
Error: keytool error: java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
at java.base/sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:198)
at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:717)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1807)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1687)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:910)
at java.base/sun.security.tools.keytool.Main.run(Main.java:397)
at java.base/sun.security.tools.keytool.Main.main(Main.java:390)
Caused by: java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:612)
at java.base/sun.security.util.DerValue.<init>(DerValue.java:257)
at java.base/sun.security.util.DerInputStream.getDerValue(DerInputStream.java:457)
at java.base/sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1834)
at java.base/sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:195)
... 10 more
I signed an apk in advance and uploaded it to the PlayStore. Now I want to update my application. But I get the error. The problem is probably related to JDK. I've tried with all JDK versions and failed. The error I got is:
Error: keytool error: java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
java.security.cert.CertificateException: Unable to initialize, java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
at java.base/sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:198)
at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:102)
at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:717)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1807)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1687)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:910)
at java.base/sun.security.tools.keytool.Main.run(Main.java:397)
at java.base/sun.security.tools.keytool.Main.main(Main.java:390)
Caused by: java.io.IOException: DerInputStream.getLength(): Redundant length bytes found
at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:612)
at java.base/sun.security.util.DerValue.<init>(DerValue.java:257)
at java.base/sun.security.util.DerInputStream.getDerValue(DerInputStream.java:457)
at java.base/sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1834)
at java.base/sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:195)
... 10 more