Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.security.spec.InvalidKeySpecException #12

Open
filippovdev opened this issue Jan 19, 2020 · 0 comments
Open

java.security.spec.InvalidKeySpecException #12

filippovdev opened this issue Jan 19, 2020 · 0 comments

Comments

@filippovdev
Copy link

filippovdev commented Jan 19, 2020

Hi, thank you for very use-full lib but sometimes I've got crashlytics reports from my users.
General description:
Fatal Exception: java.lang.RuntimeException
Failure delivering result ResultInfo{who=null, request=1001, result=-1, data=Intent { (has extras) }} to activity {com.mycomp.android.myapp/com.mycomp.android.myapp.MainActivity}: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key

Stacktrace:
Caused by java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key
at com.github.stephenvinouze.core.managers.SecurityManager.generatePublicKey(SecurityManager.kt:58)
at com.github.stephenvinouze.core.managers.SecurityManager.verifyPurchase(SecurityManager.kt:37)
at com.github.stephenvinouze.core.managers.KinAppManager.verifyPurchase(KinAppManager.kt:135)
at com.mycomp.android.myappr.MainActivity.onActivityResult(MainActivity.kt:111)
at android.app.Activity.dispatchActivityResult(Activity.java:7633)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5038)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5086)
at android.app.ActivityThread.-wrap20()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)

Cant find anything in internet how to fix this, can you check please?
Android 8.1 (Y7 Prime 2019)
Android 10 (Mate 20 Pro)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant