Coder Social home page Coder Social logo

request implement ssl/tls layer about simba HOT 7 CLOSED

eerimoq avatar eerimoq commented on July 20, 2024
request implement ssl/tls layer

from simba.

Comments (7)

eerimoq avatar eerimoq commented on July 20, 2024

I created a file inet/ssl.h with a few functions to initialize, read and write data over SSL/TLS.

The Python SSL module looks nice at a glance, with the client example client-side and server example server-side.

I don't have any experiance using SSL/TLS libraries. Seems like mbedTLS is popular. What alternatives are free and open source? Feel free to make changes to inet/ssl.h and add more files for SSL.

I guess the ssl instance should be a channel, since SSL is a data transport protocol (with some security on top).

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

Added basic client and server examples in a test suite to better understand how to use the SSL module interface.

Note that the TCP socket must be connected to the remote peer before wrapping it in an SSL socket. That is, the SSL socket will not know if it transfers data on a TCP socket. It could be any channel.

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

The plan is to design the interface close to the Python ssl module interface.

from simba.

wuwx avatar wuwx commented on July 20, 2024

https://github.com/espressif/esp8266-rtos-sample-code/tree/master/04Protocal/SSL_Demo

esp8266 rtos ssl demo project

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

I can successfully send and receive data between an SSL server side socket on an ESP32 and my PC! Needs tuning of memory usage and, most importantly, a valid entropy source implementation to ensure(?) secure communication.

See the example for usage.

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

The first version is pushed and released. Let me know if there are issues or features that are missing. Only server side is implemented.

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

Both client and server side has been implemented and seems to work. Ther eare still functionality missing that should be added to make the security better, like verify the hostnames.

from simba.

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.