ESP8266 Developer Zone The Official ESP8266 Forum 2016-11-29T16:37:27+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3152 2016-11-29T16:37:27+08:00 2016-11-29T16:37:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3152&p=10724#p10724 <![CDATA[Esp8266 connection to SSL REST fails with “client handshake failed”]]>
I'm trying to post some data to AWS API Gateway. However it always fails with the log message "client handshake failed", "Error: SSL error 40". But when I use chrome postman to post the data with the same headers, it can success. I am using the latest ESP SDK. Here is the post information you can test:

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 4:37 pm


]]>