BetaRavener/upy-websocket-server

HTTPS support

Opened this issue · 3 comments

Is there simple way how to make https webserver? Micropython has module ussl what can wrap socket to tls.

If possible I would like to generate elliptic curve self signed certificate on device, because it is much smaller than RSA certs and it is more secure.

any news on this?

I haven't been experimenting with TLS in any way, so unfortunately from me - no. I'd be more than happy to merge in pull request if someone does manage to get it working :)

As far as I can tell, the biggest problem is varying support of devices and that seemingly most people who experiment with these controllers and talk about it do not seem to care about encryption.
Varying support: just trying to get some examples running on esp8266 and esp32 there were some differences, and as opposed to other platforms micropython on esp does not seem to have some constant HTTP_PROTO_SEC or similar so it it didn't work and not sure if/how you can get around that w/o touching micropython itself.