evt-tls icon indicating copy to clipboard operation
evt-tls copied to clipboard

Do you plan to support mbedTLS?

Open zhaojh329 opened this issue 7 years ago • 10 comments

Do you plan to support mbedTLS?

zhaojh329 avatar Nov 03 '17 16:11 zhaojh329

Same question!

bl4ck5un avatar Nov 17 '17 17:11 bl4ck5un

Yes, we intend to support. Contributors welcome

deleisha avatar Dec 08 '17 13:12 deleisha

Right. mbedtls is much easier to build compare to OpenSSL, and it is great to see a lib that supports SSL with libuv with embedtls. Looking forward to the new implemented embedtls version of evt-tls!

realquantumcookie avatar Jan 30 '18 21:01 realquantumcookie

Experimentation on mbedtls started, Either I am not fluent yet on it or their API are complete yet. Using mbedtls as state black box is little difficult.

deleisha avatar Jan 31 '18 07:01 deleisha

mbedTLS-Tutorial This link could probably help. It describes how to create TLS connected Sockets using it.
Good Luck : )

realquantumcookie avatar Feb 01 '18 01:02 realquantumcookie

I just read a bit about the tutorial. embedTLS is hard to implement into evt-tls. It replaces the original read() function in UNIX and Windows API. Rather than using read(), it let you use its own function. I think that implementing embedTLS support could be compicated and time-consuming since we might need to modify the implemention inside libuv.

realquantumcookie avatar Feb 01 '18 01:02 realquantumcookie

As LibUV-mbedtls do, he re-wrote bio.c from mbedtls and then wrap mbedtls over libuv. I think this could be a good solution for us.

realquantumcookie avatar Feb 01 '18 01:02 realquantumcookie

Thanks @ToiletCommander for your effort. Perhaps, we don't want to go wolfssl way for mbedtls as that will involved maintaining the bio.c. I did a feature request to mbedtls. They leave network IO(nio) handling to the user and don't do buffering. So, we need to come up with NIO part. Now we know what need to be done. I am working on now to have a unified error handling.

deleisha avatar Feb 01 '18 18:02 deleisha

Just one question, as you requested the feature, when is the feature going to be implmented? Because I am uncertain about the version of the mbedtls lib to download.

realquantumcookie avatar Feb 05 '18 20:02 realquantumcookie

I don't think it will be in the near future. We can go ahead without that as well. Please get the latest release version because that's the version that I am planning to checked in and use.

deleisha avatar Feb 06 '18 05:02 deleisha