java.lang.IllegalArgumentException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9

  • via Stack Overflow by Chandru
    ,
  • via Stack Overflow by hakim
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0740b0:ASN.1 encoding routines:ASN1_get_object:TOO_LONG at com.smartmobilesoftware.util.Security.generatePublicKey(Security.java:67) 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) Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0740b0:ASN.1 encoding routines:ASN1_get_object:TOO_LONG at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:250) at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47) at java.security.KeyFactory.generatePublic(KeyFactory.java:172) at com.smartmobilesoftware.util.Security.generatePublicKey(Security.java:62) ... 6 more Caused by: 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) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,