After installing SMSSync : java.security.spec.InvalidKeySpecException


#1

Hello all.
Please I need help, I’m new here and novice on SMSSync - ushahidi.
I want to use SMSSync as developer but I got this when i run it on my emulator.
thanks in advance.

--------- beginning of crash

05-15 22:04:09.090 17204-17263/org.addhen.smssync.debug E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-162
Process: org.addhen.smssync.debug, PID: 17204
java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.generatePublicKey(DefaultSignatureValidator.java:114)
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.(DefaultSignatureValidator.java:50)
at com.github.jberkel.pay.me.IabHelper.(IabHelper.java:118)
at org.addhen.smssync.fragments.DonationFragment.checkUserHasDonated(DonationFragment.java:234)
at org.addhen.smssync.activities.BaseActivity$1.run(BaseActivity.java:318)
Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:143)
at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47)
at java.security.KeyFactory.generatePublic(KeyFactory.java:172)
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.generatePublicKey(DefaultSignatureValidator.java:109)
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.(DefaultSignatureValidator.java:50)
at com.github.jberkel.pay.me.IabHelper.(IabHelper.java:118)
at org.addhen.smssync.fragments.DonationFragment.checkUserHasDonated(DonationFragment.java:234)
at org.addhen.smssync.activities.BaseActivity$1.run(BaseActivity.java:318)
Caused by: java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY(Native Method)
at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:141)
at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47)
at java.security.KeyFactory.generatePublic(KeyFactory.java:172)
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.generatePublicKey(DefaultSignatureValidator.java:109)
at com.github.jberkel.pay.me.validator.DefaultSignatureValidator.(DefaultSignatureValidator.java:50)
at com.github.jberkel.pay.me.IabHelper.(IabHelper.java:118)
at org.addhen.smssync.fragments.DonationFragment.checkUserHasDonated(DonationFragment.java:234)
at org.addhen.smssync.activities.BaseActivity$1.run(BaseActivity.java:318)


#2

@dassiorleando pull the latest changes from the develop branch. There is a fix for it. If you’re making your own build of SMSsync you should consider using your own in-app purchase pub key; See this [issue][1] for more information.
[1]: https://github.com/ushahidi/SMSSync/issues/256


#3

thanks.
after pull as you ask me it’s running clearly now.