Hi Everyone!
I am pleased to announce the release of the first version of the mtls package, which provides TLS support for Tcl sockets.
Here are its features:
* uses the [mbedTLS](https://github.com/Mbed-TLS/mbedtls) library with minimal size
* interface is compatible with tcltls, most of the existing code will
work as is, without modifications
* uses CA certificates from the operating system on Linux/Windows/MacOS platforms
* uses only modern TLS1.2/TLS1.3 protocols, which are more than
sufficient for successful connections to most services
* certificate and hostname verification, SNI are enabled by default
* multi-platform, Linux/Windows/MacOS supported
* possibility to exclude the client or server part to minimize the size
even more
* easy to build, no 3rd-party libraries, everything you need to build is
in this repository
* was created as a base for the use of SSL/TLS alternative backends
The homepage is at: https://github.com/chpock/tclmtls
Please fill free to check/build/use it. Any feedback is welcome!
Am 28.04.2024 um 23:39 schrieb Kushnir Konstantin:
Hi Everyone!
I am pleased to announce the release of the first version of the mtls
package, which provides TLS support for Tcl sockets.
Great !
Would that be a candidate to be included in the TCL Core?
On 29.04.2024 19:40, saito wrote:
On 4/29/2024 2:48 AM, Christian Gollwitzer wrote:
Very good point. Perhaps a good candidate for tcllib?
While I like core features, I think this is a bad idea, given the
pace of Tcl development. If a security hole emerges, how long will it
take Tcl to release a fix??
I don't think it's possible to add things like TLS support to the Tcl
core. There is a wide range of issues: optimized encryption routines are platform-specific, overly sensitive to security, and must be carefully updated. And the main issue is license. The mtls module uses mbedTLS
library which is distributed under Apache2.0 and GPL, but Tcl uses own BSD-like license.
For tcllib it is also not suitable. The main issue is the license incompatibility. And also, tcllib is mainly for Tcl modules written in
Tcl, but this module is written in C.
I doubt that the TLS solution will be "official" someday. It looks like
it will always be out-of-box provided by semi-official and custom Tcl distributions.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 463 |
Nodes: | 16 (2 / 14) |
Uptime: | 157:13:40 |
Calls: | 9,384 |
Calls today: | 4 |
Files: | 13,561 |
Messages: | 6,096,000 |