Coder Social home page Coder Social logo

Comments (6)

jczic avatar jczic commented on August 24, 2024

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.

tshead avatar tshead commented on August 24, 2024

@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.

jczic avatar jczic commented on August 24, 2024

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.

tshead avatar tshead commented on August 24, 2024

Thanks for all the help, I’ll check it out!

Cheers,
Tim

from microwebsrv.

jczic avatar jczic commented on August 24, 2024

from microwebsrv.

tshead avatar tshead commented on August 24, 2024

Thanks for the followup on this … I will check the new version out!

Cheers,
Tim

from microwebsrv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.