-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Description
I have an ESP8266 1M with micropython 1.19.1. I'm not able to open a secure socket that can be accessed from a browser. I used the example code from the 1.19.1 repository (/examples/network/http_server_ssl), the secure socket creation command being:
client_s = ssl.wrap_socket(client_s, server_side=True, key=key, cert=cert)
The code returns exception no 267 SSL_ERROR_INVALID_CERT_HASH_ALG.
I checked network logs, browser sends TLS1.2 CLIENT HELLO with 17 cipher suites, 0x002F is one of them, server answers SERVER HELLO with fatal alert, unsupported certificate, even though 0x002F seems to be supported in the 1.19.1 version of the repo.
Client address: ('192.168.0.42', 52544) Client socket: `<socket state=3 timeout=-1 incoming=0 off=0> <_SSLSocket 3fff1e50> Request: Exception serving request: -267
Is it possible at all to have on ESP8266 a proper https server that can be accessed from a modern browser?