Files
jwt-cpp/docs/ssl.md
Chris Mc 179beb3627 ⬆️ Update LibreSSL version up to 4.2.1 (#410)
* Update LibreSSL version to 4.2.1 in CI configuration and documentation

* update OpenSSLErrorTest for LibreSSL 4.2.0+

Add Linux LibreSSL support in CMake presets

* add debug output to failure for all ssl libraries

* fix type in libressl version check

* chore: lint
2026-02-16 20:03:33 -08:00

3.0 KiB

Cryptography Libraries

The underlying cryptography libraries describe here can be selected when configuring CMake by explicitly setting JWT_SSL_LIBRARY to one of three values. The default is to use OpenSSL.

  • OpenSSL
  • LibreSSL
  • wolfSSL

Here's an example:

cmake . -DJWT_SSL_LIBRARY:STRING=wolfSSL 

Supported Versions

These are the versions which are currently being tested:

OpenSSL LibreSSL wolfSSL
3.0.19 4.2.1 5.1.1
3.5.5 ⭐ 4.1.2 5.2.0
3.6.1 3.9.2 5.3.0

Note

⭐ Indicates LTS (Long-Term Support) versions. OpenSSL versions are supported as follows:

  • 3.0.19: Supported until 2026-09-07 (LTS)
  • 3.5.5: Supported until 2030-04-08 (LTS)
  • 3.6.1: Supported until 2026-11-01

A complete list of versions tested in the past can be found here.

Notes

JWT-CPP relies on the OpenSSL API, as a result both LibreSSL and wolfSSL need to include their respective compatibility layers. Most system already have OpenSSL so it's important to make sure when compiling your application it only includes one. Otherwise you may have missing symbols when linking.