java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0740b0:ASN.1 encoding routines:ASN1_get_object:TOO_LONG

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by bhorn
, 1 year ago
java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0740b0:ASN.1 encoding routines:ASN1_get_object:TOO_LONG
java.lang.RuntimeException: error:0c0740b0:ASN.1 encoding routines:ASN1_get_object:TOO_LONG
at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY(Native Method)
at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:248)
at com.smartmobilesoftware.util.Security.generatePublicKey(Security.java:62)
at com.smartmobilesoftware.util.Security.verifyPurchase(Security.java:47)
at com.smartmobilesoftware.util.IabHelper.queryPurchases(IabHelper.java:864)
at com.smartmobilesoftware.util.IabHelper.queryInventory(IabHelper.java:562)
at com.smartmobilesoftware.util.IabHelper.queryInventory(IabHelper.java:540)
at com.smartmobilesoftware.util.IabHelper$2.run(IabHelper.java:635)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.