Comments (6)
SSL/TLS (https) isn't implemented on MicroWebSrv, but it's simple with a pycom.
Just wrap socket with the goods parameters after socket creation :)
from microwebsrv.
@jczic - Thanks for the response! I thought that this would be easy too, but I've tried calling ssl.wrap_socket(...) after both bind() and accept(), and in both cases the client hangs while making a request. This was with my own minimalist http server, but I think I'll try hacking on MicroWebSrv instead. I'm curious if you have a working example?
Cheers,
Tim
from microwebsrv.
Hi,
I have an another http(s) server with that but it's dedicated to a special usage and uses I/O directly (TLS's handshake doesn't works with asynchrone mode in micropython/esp32...).
You can see that in : https://github.com/jczic/IoTSocket-Concentrator or directly in my sockets layer file in : https://github.com/jczic/xAsyncSockets.
But this code doesn't use normal/synchrone TLS mode.
Also, don't forget the argument to enable "server side" TLS usage on ssl.wrap_socket.
Good luck and have a nice day.
from microwebsrv.
Thanks for all the help, I’ll check it out!
Cheers,
Tim
from microwebsrv.
from microwebsrv.
Thanks for the followup on this … I will check the new version out!
Cheers,
Tim
from microwebsrv.
Related Issues (20)
- HTTPS and WSS support HOT 3
- Accessing filesystem from threaded webserver crashes the machine HOT 5
- ESP32 - mws.IsStarted() problem when threaded HOT 3
- 403 Forbidden error occured when loading the fonts folder of the webapp made with Vue.js HOT 4
- Error 112 on ESP32 HOT 13
- httpResponse doesn't send the response after reconnecting wifi HOT 3
- Socket Time out when using Threading=True on Pyboard D HOT 2
- No logging is implemented to allow INFO,DEBUG,WARNING,ERROR and so. HOT 3
- Add RouteHandler at runtime HOT 1
- link css in html,browser 302 found. HOT 4
- SendText HOT 4
- Websockets HOT 2
- will the code as distributed in this .git support server-sent-events? HOT 1
- MicroWebSrv.Start never terminates when threaded=False and Stop() is called HOT 1
- srv.IsStarted() Always return:false HOT 1
- How to serve static files from LittleFS ? HOT 1
- WebSocket Critical Question ? HOT 3
- stack overflow serving small pyhtml page HOT 1
- Does this project support ESP8266
- CAUTION: THIS PROJECT IS ABANDONNED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microwebsrv.