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

eclipse kura and AWS IoT™ platform : aws device ssl certificate error #1388

Closed
marentwickler opened this issue May 23, 2017 · 12 comments
Closed

Comments

@marentwickler
Copy link

I try to connect kura and aws, but no success,
I get this error:
ILLEGAL_ARGUMENTorg.eclipse.kura.web.shared.GwtKuraException: ILLEGAL_ARGUMENT
at Unknown.gd(denali-0.js)
at Unknown.pd(denali-0.js)
at Unknown.SYb(denali-0.js)
at Unknown.XYb(denali-0.js)
at Unknown.f3(denali-0.js)
at Unknown.b3(denali-0.js)
at Unknown.A1(denali-0.js)
at Unknown.h2(denali-0.js)
at Unknown._n(denali-0.js)
at Unknown.oo(denali-0.js)
at Unknown.eval(denali-0.js)
at Unknown.je(denali-0.js)
at Unknown.me(denali-0.js)
at Unknown.eval(denali-0.js)

PS: I have entered this command: openssl pkcs8 -topk8 -inform PEM -outform PEM -in xxxxxxxxxx-private.pem.key -out outKey.pem -nocrypt, but but without success.

Kura version: 3.0.0.
Device:Raspberry Pi.

Thanks in advance

@MMaiero
Copy link
Contributor

MMaiero commented May 23, 2017

Hi, did you follow the tutorial available here: http://eclipse.github.io/kura/cloud/kura-aws-cloud.html ?

@marentwickler
Copy link
Author

thanks,
yes, i have entered all steps from this guid, but by tab Device SSL Certificate comes this error.

@MMaiero
Copy link
Contributor

MMaiero commented May 23, 2017

Is the keystore correctly set and linked by the SSL tab in Kura?

@marentwickler
Copy link
Author

thanks,
yes, default:/opt/eclipse/kura/security/cacerts.ks.
I have also tried with /opt/eclipse/kura/security/cacerts, but same error.

@MMaiero
Copy link
Contributor

MMaiero commented May 23, 2017

but, is there the corresponding file in one of these locations?

@MMaiero
Copy link
Contributor

MMaiero commented May 23, 2017

Kura, by default, is provided without a specific keystore file. You need to create that, as described in the documentation file.

@marentwickler
Copy link
Author

now i used /opt/eclipse/kura/security/cacerts as keystore, but same error.

@marentwickler
Copy link
Author

marentwickler commented May 23, 2017

at the beginning I have worked with this document :https://blog.benjamin-cabe.com/2015/10/23/tutorial-connecting-eclipse-kura-to-aws-iot.
by them the keystore is the default value.

@MMaiero
Copy link
Contributor

MMaiero commented May 23, 2017

That guide was used as a reference for the new one here http://eclipse.github.io/kura/cloud/kura-aws-cloud.html that is more up to date.
Looking at point 7, it suggests to create a directory: sudo mkdir /opt/eclipse/security. Did you follow this step? If so, the path you provided in the Kura web ui is not correct.

@marentwickler
Copy link
Author

yes, i have entered all steps from 1 to 9, but always same error.

@dwoodard1
Copy link
Contributor

@marentwickler I noticed you closed this issue, did you resolve your issue? If so, could you share your solution? It may help others who run into the same problem.

@marentwickler
Copy link
Author

@dwoodard1,@MMaiero thanks, yes i resolved my issue, on tab MqttDataTransport-AWS the parameter lwt.retain was on true, solution is lwt.retain=false, then Raspberry-Pi device is connected with AWS platform IoT.
I have used guid :https://eclipse.github.io/kura/cloud/kura-aws-cloud.html.

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

3 participants