-->
Page 1 of 3

WifiClientSecure connect failed tomcat - solved

PostPosted: Thu Jan 12, 2017 6:37 pm
by Daemach
I've been working with Igrr's test code here: https://github.com/esp8266/Arduino/blob ... equest.ino

When I use api.github.com as the host it seems to work. When I use gb.synaptrix.com as the host, it fails - it doesn't even get to the fingerprint verification stage. I have debugging turned on and set to "all" and don't see any kind of messaging for the https handshake. This is the output:

wifi evt: 0
.....wifi evt: 3
.
WiFi connected
IP address:
192.168.1.177
connecting to gb.synaptrix.com
[hostByName] request IP for: gb.synaptrix.com
[hostByName] Host: gb.synaptrix.com IP: 52.38.244.165
connection failed
wifi evt: 7

How do I troubleshoot this?

Re: WifiClientSecure connect failed tomcat

PostPosted: Thu Jan 12, 2017 7:01 pm
by Daemach
More info: https://www.screencast.com/t/sip09P6zV

It appears to be a TLS 1.1 handshake failure. Do I need to do something on the server side? HTTPS works from the browser.

Re: WifiClientSecure connect failed tomcat

PostPosted: Fri Jan 13, 2017 3:12 pm
by Daemach
bump

Re: WifiClientSecure connect failed tomcat

PostPosted: Fri Jan 13, 2017 3:50 pm
by martinayotte
Did you change to fingerprint in the sketch to match with the server certificate ?