-->
Page 1 of 1

net.createConnect, SSL not working.

PostPosted: Mon Mar 30, 2015 11:58 pm
by terenceang
I tried for weeks trying to get the ESP8266 to log on to api.pushbullet.com, on a SSL connection on port 443.
Tired it with native SDK, freertos and it is not working.

On nodemcu i tried.

Code: Select all    -- A simple http client
    conn=net.createConnection(net.TCP, 1)
    conn:on("receive", function(conn, payload) print(payload) end )
    conn:connect(443,"api.pushbullet.com")
    conn:send("GET / HTTP/1.1\r\nHost: api.pushbullet.com\r\n"
        .."Connection: keep-alive\r\nAccept: */*\r\n\r\n")


and the connection just hangs there.

on chrome .

Code: Select all{"cat":"(=^.^=)","happy_to_see_you":true,"message":"Welcome to the Pushbullet API!"}


Can I conclude that currently there is no way to log on to a https server?
it will be useful if it does, as most REST clients uses SSL now.

Any help or advise appreciated.

Thank you.

Re: net.createConnect, SSL not working.

PostPosted: Thu Apr 09, 2015 6:24 pm
by abl
Looks like NodeMCU does not support SSL at all.

https://github.com/nodemcu/nodemcu-firmware/issues/336

I was able to get it to work, once, with a 1024-bit self-signed certificate and the ESPMQTT client.

Re: net.createConnect, SSL not working.

PostPosted: Sun Apr 19, 2015 1:48 pm
by Arpit Agrawal
I have been trying this with little luck.
My code looks similar to terenceang's.
Trying to access my endpoint over SSL but I get no response whatsoever.

Can someone please advise how to go about it.

thanks

Re: net.createConnect, SSL not working.

PostPosted: Fri Sep 25, 2015 8:25 am
by gwallee
I hesitate to wake an old topic, but I too am having this problem. Was anyone able to send a notification through pushbullet?