jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
2.59k stars 439 forks source link

HTTPS handshake failure on IoT device #1952

Open Raikan10 opened 4 years ago

Raikan10 commented 4 years ago

I am running buildroot and iotjs on an iot device and I'm trying to make a post request to login and get an auth token. But I'm unable to call the API at all because I run into an error that says

"API Failed, problem with request: handshake failed: domian"

The same API works given I use the http version. The server I'm trying to call is hosted on an AWS EC2 instance behind cloudflare.

Any help is appreciated thanks!

zherczeg commented 3 years ago

Which API you are using? TLS throws handshake failed but this is probably something different. Maybe something is wrong with the certificate.

Raikan10 commented 3 years ago

Thank you very much for replying, it is an API that the we designed that's used for internal purposes. It's an express server.