Comments (12)
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.
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.
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.
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.
Any update on the status of this?
from python-mbedtls.
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.
Still progressing.
from python-mbedtls.
Sorry, wrong button...
from python-mbedtls.
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.
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.
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.
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)
- Possibility to change mbedtls_ssl_conf_read_timeout HOT 7
- Chunking while sending more than 1024B data during handshake HOT 5
- TLS error when running client.py and server.py HOT 2
- server.py and client.py still have bugs when running on the Ubuntu system. HOT 2
- DTLSConnection Id Support HOT 1
- Set DH params on Server.py
- won't install/compile HOT 1
- fails to run HOT 2
- error control nb args HOT 1
- Executing server.py gives:
- server.py error HOT 2
- Tests fail if mbedtls built without ARIA support HOT 1
- Issue with loading private keys and trailing null bytes HOT 4
- AES GCM 128 and 256 fails TAG test vector HOT 2
- Provide an example of DTLS server and client with certificates instead of PSK HOT 14
- Possibility to change MTU (max_frag_len) fragmentation size. HOT 8
- TLSWrappedSocket.shutdown(int) does not send DTLS Alert Close Notify message (mbedtls_ssl_close_notify) HOT 4
- Python handle of "record from another epoch: expected 1, received 0" HOT 4
- test_version() test fails due to Mbed TLS spelling change HOT 2
- Random error in HelloVerifyRequest() HOT 6
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 python-mbedtls.