Coder Social home page Coder Social logo

Comments (12)

Synss avatar Synss commented on June 12, 2024 1

As far as I can see, DTLS is fully working now. However, the tests with TLSVersion.TLSv1 do not pass anymore. I will investigate. I may nevertheless make a release with DTLS in and TLSv1 disabled in the meantime. The tests for TLSv1_1 and TLSv1_2 pass so TLS still works in principle.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

I can give it a try and see how far I get... non-blocking IO even seems to be possible and would be really interesting.

from python-mbedtls.

therealprof avatar therealprof commented on June 12, 2024

Yes, absolutely. mbedTLS is used in quite a lot of embedded devices with OSes like Zephyr (https://www.zephyrproject.org/) or ARMs own mbed OS (https://www.mbed.com/en/) for DTLS, even as a server.

If find mbedTLS to be quite a bit better than OpenSSL/LibreSSL in many regards but unfortunately the few DTLS implementations available for Python all rely on OpenSSL. ๐Ÿ‘Ž

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Just to keep you updated, I am working on TLS now and for some time already. Handshake is working as well as send/recv on Python 3. On Python 2.7, handshake is working but the encrypted data do not seem to go over the socket. I do not think that certificate validation works.

Still, I am making progress.

Once TLS works reliably, I will go for DTLS.

I hope to be done by the end of the year.

from python-mbedtls.

jarednm avatar jarednm commented on June 12, 2024

Any update on the status of this?

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Hi @jarednm, TLS took longer than I thought. Recently, I have been working on creating wheels to distribute mbedtls (the C library) with mine so that pip install python-mbedtls just works. The recent 0.14 comes with 64-bit manylinux wheels.

Now DTLS is next on my list.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Still progressing.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Sorry, wrong button...

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

I have now witnessed a complete client-server DTLS handshake. Communication fails thereafter and DTLS is not usable but there is progress.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

Now I have a working DTLS echo server. I still have to clean up and some socket-related things are not entirely clean to me. But the working echo server shows that most of the crypto (and most of the socket work) is in place.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

One week after, I have basic DTLS fully working. Basic now means no DTLS cookie or certificate validation but handshake works reliably and a server is able to answer to several clients. Would that be good enough, I could make a release. Otherwise, I will release after cookie and certificate validation actually workโ€”That could be a few more weeks.

from python-mbedtls.

Synss avatar Synss commented on June 12, 2024

DTLS is in 0.15.0 that I have just released. The tests for TLSv1 remain disabled: I do not understand what the problem is but I do not want to delay DTLS anymore.

Feedback is always welcome! But for now, I will close this ticket.

from python-mbedtls.

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.