☰ Menu
Home›Security & Privacy›mbedtls@3
CLI Open source 3,642 installs/mo

mbedtls@3 for Mac

mbedtls@3

Cryptographic & SSL/TLS library

mbedtls@3 — overview

README for Mbed TLS


Mbed TLS is a C library that implements X.509 certificate manipulation and the TLS and DTLS protocols. Its small code footprint makes it suitable for embedded systems. Mbed TLS includes the TF-PSA-Crypto repository that provides an implementation of the PSA Cryptography API.

Configuration

Configuration options related to X.509 and TLS are available in include/mbedtls/mbedtls_config.h, while cryptography and platform options are located in the TF-PSA-Crypto configuration file tf-psa-crypto/include/psa/crypto_config.h.

With the default platform options, Mbed TLS should build out of the box on most systems.

These configuration files can be edited manually, or programmatically using the Python script scripts/config.py (run with --help for usage instructions).

We provide some non-standard configurations focused on specific use cases in the configs/ directory. You can read more about those in configs/README.txt.

Documentation

The main Mbed TLS documentation is available via ReadTheDocs.

To generate a local copy of the library documentation in HTML format, tailored to your compile-time configuration: Make sure that Doxygen is installed. Run cmake -B /path/to/build_dir /path/to/mbedtls/source Run cmake --build /path/to/build_dir --target mbedtls-apidoc Open one of the main generated HTML files: apidoc/index.html apidoc/modules.html or apidoc/topics.html

For other sources of documentation, see the SUPPORT document.

Compiling

We use CMake to configure and drive our build process. Three libraries are built: libtfpsacrypto, libmbedx509, and libmbedtls. Note that libmbedtls depends on libmbedx509 and libtfpsacrypto, and libmbedx509 depends on libtfpsacrypto. As a result, some linkers will expect flags to be in a specific order, for example the GNU linker wants -lmbedtls -lmbedx509 -ltfpsacrypto. The cryptographic library libtfpsacrypto is also provided under its legacy name, libmbedcrypto.

Tool versions

You need the following tools to build the library from the main branch with the provided CMake files. Mbed TLS minimum tool version requirements are set based on the versions shipped in the latest or penultimate (depending on the release cadence) long-term support releases of major Linux distributions, namely at time of writing: Ubuntu 22.04, RHEL 9, and SLES 15 SP4.

CMake 3.20.2 or later. A build system like Make or Ninja for which CMake can generate build files. A C99 toolchain (compiler, linker, archiver). We actively test with GCC 5.4, Clang 3.8, Arm Compiler 6, and Visual Studio 2017 Compiler. More recent versions should work. Slightly older versions may work. Python 3.8 or later to generate the test code. Python is also needed to build the development branch (see next section). Perl to run the tests, and to generate some source files in the development branch. Doxygen 1.8.14 or later (if building the documentation; slightly older versions should work).

Git usage

Details

加密与 SSL/TLS 库

How to install mbedtls@3

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-07-07; current version mbedtls-4.2.0, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
mbedtls-4.2.02026-07-07Stable————
mbedtls-4.1.12026-07-07Stable————
mbedtls-3.6.72026-07-07Stable————
mbedtls-4.1.02026-03-31Stable————
mbedtls-3.6.62026-03-31Stable————
mbedtls-4.0.02025-10-15Stable————
mbedtls-3.6.52025-10-15Stable————
mbedtls-3.6.42025-06-30Stable4.1 MB———
v3.6.3.12025-05-13Stable————
mbedtls-4.0.0-beta2025-07-04Pre-release————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Depended on by 6 apps

The following apps install it automatically, ranked by 30-day installs:

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Intel · macOS 14 Sonoma
  • Linux · ARM64
  • Linux · x86_64

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
mbedtls@3mbedtls-4.2.0Apache-2.0CLI3,642
cryptoppCRYPTOPP_8_9_0LicenseRef-Homebrew-public-domain AND BSL-1.0CLI393
openfortivpn1.24.1GPL-3.0-or-later WITH cryptsetup-OpenSSL-exceptionCLI338
nettle4.0GPL-2.0-or-later OR LGPL-3.0-or-laterCLI272

Similar apps: Security & Privacy

Leave a comment

评论表单加载中…