OpenSSL VS mbedTLS

Compare OpenSSL vs mbedTLS and see what are their differences.

mbedTLS

An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases. (by Mbed-TLS)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
OpenSSL mbedTLS
149 9
24,142 4,898
1.5% 2.2%
9.9 10.0
5 days ago 6 days ago
C C
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

OpenSSL

Posts with mentions or reviews of OpenSSL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-07.
  • Heartbleed and XZ Backdoor Learnings: Open Source Infrastructure Can Be Improved Efficiently With Moderate Funding
    2 projects | dev.to | 7 Apr 2024
    Today, April 7th, 2024, marks the 10-year anniversary since CVE-2014-0160 was published. This security vulnerability known as "Heartbleed" was a flaw in the OpenSSL cryptography software, the most popular option to implement Transport Layer Security (TLS). In more layman's terms, if you type https:// in your browser address bar, chances are high that you are interacting with OpenSSL.
  • Ask HN: How does the xz backdoor replace RSA_public_decrypt?
    1 project | news.ycombinator.com | 1 Apr 2024
    At this point I pretty much understand the entire process on how the xz backdoor came to be: its execution stages, extraction from binary "test" files etc. But one thing puzzles me: how can the ifunc mechanism be used to replace something like RSA_public_decrypt? Granted this probably stems from my lack of understanding of ifunc, but I was under the impression that in order for the ifunc mechanism to work in your code, you have to explicitly mark specific function with multiple implementations with __attribute__ ((ifunc ("the_resolver_function"))). Looking at the source code of the RSA function in question, ifunc attribute isn't present:

    https://github.com/openssl/openssl/blob/master/crypto/rsa/rsa_crpt.c#L51

    So how does the backdoor actually replace the call? Does this means that the ifunc mechanism can be used to override pretty much anything on the system?

  • Use of HTTPS Resource Records
    1 project | news.ycombinator.com | 4 Jan 2024
    OpenSSL and Go crypt/tls has no support yet, so none of the webservers that depend on them support it. Apache, Nginx, and Caddy, they all need upstream ECH support first.

    - https://github.com/openssl/openssl/issues/7482

    - https://github.com/openssl/openssl/pull/22938

    - https://github.com/golang/go/issues/63369

  • openssl-3.2.0 released
    1 project | /r/linux | 25 Nov 2023
  • Large performance degradation in OpenSSL 3
    1 project | news.ycombinator.com | 6 Oct 2023
  • OpenSSL 3.2 Alpha 2
    1 project | news.ycombinator.com | 30 Sep 2023
  • Encrypted Client Hello – the last puzzle piece to privacy
    4 projects | news.ycombinator.com | 29 Sep 2023
    If I'm understanding the draft correctly, I think the webserver you're hosting your sites on would need it implemented as it requires private keys and ECH configuration. In the example of nginx since it uses openssl, openssl would need to implement it. I found an issue on their Github but it's still open: https://github.com/openssl/openssl/issues/7482
  • eBPF Practical Tutorial: Capturing SSL/TLS Plain Text Data Using uprobe
    3 projects | dev.to | 19 Sep 2023
  • OpenSSL Versions... whats the plan here
    1 project | /r/Ubuntu | 19 Aug 2023
    I confirmed that the systm was on 1.1.1f with openssl version command. Hmm...... I check the openssl version in the repo with apt list... LOL package names wernt helpful. finally went to the repo pages and found that its still on 1.1.1f, https://launchpad.net/ubuntu/+source/openssl. Meenwhile I looked up the version history on https://www.openssl.org/ and saw that 1.1.1v was released at the beginning of this month... ok. I can understand it it was out less then 30 days. I looked up when f came out, end of MARCH 2020. NEARLY 3-1/2 YEARS
  • I am looking for a troubled/bad open source codebase
    13 projects | /r/ExperiencedDevs | 12 Jul 2023

mbedTLS

Posts with mentions or reviews of mbedTLS. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-31.
  • OpenWrt 23.05
    1 project | news.ycombinator.com | 13 Oct 2023
    It's work in progress: https://github.com/Mbed-TLS/mbedtls/blob/development/docs/ar...

    Newer version have okay-ish support, I'd guess the next OpenWRT release will have it again.

  • How can I disable the close_notify message?
    1 project | /r/nginx | 13 Mar 2023
    It's related to this Mbed-TLS issue
  • DIY Physical Backed Tokens (EIP-5791) with ESP32 and BLE
    1 project | /r/ethdev | 2 Feb 2023
    i've used the entropy generator from MbedTLS which uses multiple sources of randomness, and seeding it additionally with the chip's mac address and the free heap size at time of creation. it would take a lot to recreate all that "noise" consistently, but i'm open to suggestions on how to make it more secure
  • Help libraries won’t work on the IDE for esp32
    1 project | /r/arduino | 26 Dec 2022
    However on the github page and assuming I found the right source - and this is a HUGE ASSUMPTION - there is a section on porting the library to other platforms.
  • redbean: a single-file actually portable web server with Lua, HTTPS and SQLite
    4 projects | /r/lua | 31 Aug 2022
    Rebean is a single executable written in ANSI C that embeds Lua 5.4, MbedTLS and SQLite. The crazy thing about this is that it is a C binary that runs on six operating systems without any cross compiling thanks to leveraging Justine Tunney's cosmopolitan.
  • Install mbedTLS on Linux
    2 projects | /r/embedded | 3 Jul 2022
    it looks like the commands are all built under https://github.com/Mbed-TLS/mbedtls/tree/development/programs and the arch mbedtls package does some extra work to rename them and copy them into /usr/local/bin: https://github.com/archlinux/svntogit-community/blob/packages/mbedtls/trunk/PKGBUILD#L55
  • Elliptic Curve Cryptography Explained
    2 projects | news.ycombinator.com | 28 May 2021
    If you want to see a real implemention of arbitrary sized integer math, mbedTLS is a great example:

    https://github.com/ARMmbed/mbedtls/blob/development/library/...

    All of the ECC code in that library relies on this code, which can be accelerated by dedicated hardware.

  • C Deep
    80 projects | dev.to | 27 Feb 2021
    mbed TLS - Another crypto implementation. Apache-2.0
  • WireGuard implementation for LwIP stack
    1 project | /r/WireGuard | 22 Feb 2021
    Definitely, FreeRTOS + LwIP + Mbed TLS is a fairly common combo these days, and Mbed TLS has hardware acceleration where possible.

What are some alternatives?

When comparing OpenSSL and mbedTLS you can also consider the following projects:

GnuTLS - GnuTLS

wolfssl - The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3!

Crypto++ - free C++ class library of cryptographic schemes

libsodium - A modern, portable, easy to use crypto library.

LibreSSL - LibreSSL Portable itself. This includes the build scaffold and compatibility layer that builds portable LibreSSL from the OpenBSD source code. Pull requests or patches sent to [email protected] are welcome.

LibTomCrypt - LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

cfssl - CFSSL: Cloudflare's PKI and TLS toolkit

Botan - Cryptography Toolkit

mbedcrypto - a portable, small, easy to use and fast c++14 library for cryptography.