EHS5-E TLS mutual authentication problem - Remote peer has closed the connection | Thales IoT Developer Community
August 31, 2021 - 10:59pm, 1611 views
I'm running EHS5-E and trying to establish TLS communication to AWS IoT mutual communication without success. The error code is:
^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 authenticationtest.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:
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!