cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: SSL/TLS Error: Unable to connect (-112)

arnaud239955
Associate II
Posted on July 21, 2016 at 13:33

Hello,

I managed to setup a full mutual auth TLS system with SPWF01Sx and Nginx server.

I have reliability problems to open the socket. Sometimes, the socket opens without problem, sometimes opening fails and I get the error -112.

Looking at Nginx logs, the connexion doesn't reach the server, so the problem seems to be on the device connection.

Is there a detailed description of possible causes of error -112 ?

Any advice on how to debug the issue is welcome.

Best regards

Zirco

#error-ssl/tls-mutual-auth
2 REPLIES 2
Posted on July 22, 2016 at 08:28

Hi Z,

I think you are facing some low RAM problems. -112 indicates a failure on security algorithm, probably due to big certificates in size (are you using RSA?). If you really need mutual authentication:

- use ECC in place of RSA

- use smaller certificates

- monitor free_heap before a secured&mutual sockon

Ciao

jerry

arnaud239955
Associate II
Posted on July 22, 2016 at 16:02

Hello Jerry

Thanks you for your answer.

I moved to ECC keys and the problem disappeared. So this issue is closed.

Best regards

Zirco