ssl_handshake_status: -256

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Lir10
Posts: 1
Joined: Wed Jan 11, 2017 10:02 am

ssl_handshake_status: -256

Post by Lir10 » Wed Jan 11, 2017 10:05 am

Running the following code :

>>> import usocket as socket
>>> import ussl as ssl
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> ss = ssl.wrap_socket(s)

produces:

ssl_handshake_status: -256
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 5] EIO

jamesb
Posts: 13
Joined: Tue Nov 29, 2016 3:31 am

Re: ssl_handshake_status: -256

Post by jamesb » Thu Jan 12, 2017 2:12 am

I get this response trying to post to Google sheets. Reading around, I think it's something to do with the ssl certificate size filling up memory. I'm looking for a solution to post to an intermediate non-secure API that can then forward on using ssl - appreciate any pointers. Maybe something like pushingbox.com as described here: https://www.hackster.io/detox/transmit- ... ets-8fc617

Capstan
Posts: 54
Joined: Sun Jan 29, 2017 4:03 pm

Re: ssl_handshake_status: -256

Post by Capstan » Mon Jul 03, 2017 6:18 pm

Seeing a similar issue here. Does anyone have some working example code that demonstrates working SSL?

Post Reply