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

You are here

EHS5-E TLS mutual authentication problem - Remote peer has closed the connection | Telit Cinterion IoT Developer Community

August 31, 2021 - 10:59pm, 2481 views

Hi,

I'm running EHS5-E and trying to establish TLS communication to AWS IoT mutual communication without success. The error code is:

AT^SISO=0

^SIS: 0,0,48,"Remote peer has closed the connection"

I then tried to connect to test.mosquitto.org server instead, and there they have 2 ports:

test.mosquitto.org:8883 server authentication
test.mosquitto.org:8884 mutual authentication (client cert required)

and for port 8883, the connection is successful, while for 8884, it got the same message "remote peer has closed the connection", similar to AWS IoT.

Here are the link to the mosquitto client private key, cert and mosquitto ca cert that I used.

Please note that I do the same connection tests using ELS61-E R2, using the same set of certificates to AWS and mosquitto.org correspondingly, and all TLS communication works as expected. This got me to believe that something in the EHS5-E TLS stack is not right, specifically the client authentication part, causing the server to close the communication immediately. Unfortunately I have not managed to setup an internet server to capture TLS handshake yet.

My HW version:

ati1
URC: Cinterion
URC: EHS5-E
URC: REVISION 03.001
URC: A-REVISION 00.000.55
 
URC: at^sjam=5
URC: ^SJAM: "a:/JRC-1.56.58.jad","Java Remote Control MIDlet Suite","Cinterion", "1.56.58",1

 

It would be great if someone can do the same test (quite easy to do towards mosquitto server) and confirm the problem with the modem. Otherwise, any help would be appreciated. Thanks!