iink SDK on Device

Answered

java.lang.IllegalArgumentException: invalid certificate

It was confirmed that the sampled app works well.

Afterwards, when applied to an actual project, the following certificate error appears.

What should I do?


java.lang.IllegalArgumentException: invalid certificate

        at com.myscript.iink.NativeFunctions.createEngine(Native Method)

        at com.myscript.iink.Engine.<init>(Engine.java:23)

        at com.myscript.iink.Engine.create(Engine.java:43)

...



Best Answer

Dear Cer0415,


thank you for contacting us.


Currently, I could not find your account on our ATK site to check your console: atk.myscript.com


Can you please login at this link, look at your console and confirm you have the “Mismatch between certificate and application: com\.myscript\..+ != com.xxxxxxxxxx.xxxxx” error message?

If so, please re-create a proper certificate with the application ID of your application (on Android), or bundle identifier (on iOS): https://developer.myscript.com/support/account/on-device-license-management/, and replace your previous certificate with this new one. After re-build, you should be able to create the engine.


Let us know if it helps.


Best regards,


Olivier


1 person has this question
1 Comment

Answer

Dear Cer0415,


thank you for contacting us.


Currently, I could not find your account on our ATK site to check your console: atk.myscript.com


Can you please login at this link, look at your console and confirm you have the “Mismatch between certificate and application: com\.myscript\..+ != com.xxxxxxxxxx.xxxxx” error message?

If so, please re-create a proper certificate with the application ID of your application (on Android), or bundle identifier (on iOS): https://developer.myscript.com/support/account/on-device-license-management/, and replace your previous certificate with this new one. After re-build, you should be able to create the engine.


Let us know if it helps.


Best regards,


Olivier