Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Problem with AWS and ESH5 | Telit Cinterion IoT Developer Community

July 31, 2017 - 6:11pm, 7439 views

Hello, I hope you can help me, I am trying to connect an ESH5 to AWS IOT, but using MQTT with SSL has been impossible, I have done the following:

a)    I configured AWS oit (All steps according to manual) and then download the following security files:

  • 63daef3df8-certificate.pem.crt,
  • 63daef3df8-private.pem.key,
  • 63daef3df8-public.pem.key

b)    Then download the Root CA from Symantec Site (File pem, which I called RootCA.pem and after I converted it to .DER), finally I used the MQTT.FX tool to test and everything works correctly.

c)    After a Make the Midlet App Using Paho from Gemalto Code, it compiled without problems.

d)    Then, I make the netxs steps(IoT-AuterEjemplo is my app):

 java -jar jseccmd.jar -cmd AddHttpsCertificateUntrusted       -filename RootCA.der > AddHttpsCertificateUntrusted.bin

java -jar jseccmd.jar -cmd AddHttpsClientCertificateUntrusted -filename 63daef3df8-certificate.pem.crt -keyfilename 63daef3df8-private.pem.key > AddHttpsClientCertificateUntrusted.bin

at^sjmsec="cmd",0B00310001000500020001 

at^sjmsec?

^SJMSEC: 1,1,1,1

 

at^sjmsec="file",AddHttpsCertificateUntrusted.bin

at^sjmsec="file",AddHttpsClientCertificateUntrusted.bin

AT^SJAM=0,"a:/IoT-AuterEjemplo.jad",""

AT^SJAM=1,"a:/IoT-AuterEjemplo.jad",""

 

But when I run and try to connect with AWS appear  the next error

 

[MainMidlet]: Connecting to broker: ssl://a1h7rt21wt5j74.iot.us-east-1.amazonaws.com:8883

[MainMidlet]: MqttException system error:

        reason 32103

        msg    Unable to connect to server

        loc    Unable to connect to server

        cause  java.io.IOException: -213 SSL-Error: revcd alert fatal error

        excep  Unable to connect to server (32103) - java.io.IOException: -213 SSL-Error: revcd alert fatal error

 

But when I try to connect with tcp://iot.eclipse.org:1883  works very good!!

 

My firmware is

Cinterion

EHS6

REVISION 03.001

A-REVISION 00.000.14