Esp8266 connection to SSL REST fails with “client handshake failed”

shihuibo19
Posts: 2
Joined: Tue Aug 30, 2016 3:41 pm

Esp8266 connection to SSL REST fails with “client handshake failed”

Postby shihuibo19 » Tue Nov 29, 2016 5:52 am

Hi there,

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.

Who is online

Users browsing this forum: No registered users and 58 guests