ESP8266 Developer Zone The Official ESP8266 Forum 2016-11-29T05:52:33+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3146 2016-11-29T05:52:33+08:00 2016-11-29T05:52:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3146&p=10702#p10702 <![CDATA[Esp8266 connection to SSL REST fails with “client handshake failed”]]>
I'm trying to post some data to AWS API Gateway. Somehow the POST always fails with "client handshake failed" "Error: SSL error 40". I used google postman to send the same data with the same headers, it can success. I'm using the latest ESP SDK. Here is the request:

POST /stag/v1/auth/appliance HTTP/1.1
Host: vyq5xqkqce.execute-api.eu-central-1.amazonaws.com:443
Connection: keep-alive
User-Agent:ESP8266
Content-Type: application/json
Accept: application/json
Content-Length: 84


{"appliance_id":"2b5b67e0-b584-11e6-85d5-0b04c58550a6","secret":"6217fe0b6e2d8ba3"}}

Any reply would be grateful.

Statistics: Posted by shihuibo19 — Tue Nov 29, 2016 5:52 am


]]>