Skip to main content

How do I build libraries using CMake projects?

Question: How do I build libraries using a CMake project?

Answer: TrustCore SDK provides sample shell scripts to build the NanoSSL Client, NanoSSL Server, and the corresponding libraries. These scripts along with the CMake projects are provided as part of the sources and have already been configured to build binaries with specific features. If a particular feature needs to be enabled or disabled, modify the extensions as required to build and include the associated flags.

SSL client scripts

The following SSL client scripts are located in the scripts/nanossl/ssl_client/ directory:

  1. Binaries that support only SW private keys

    • US Edition: build_ssl_client_cap.sh

    • Export Edition: build_ssl_client_export.sh

  2. Superset binaries with support for SW and TAP (Secure Element) private keys (local TAP library mode)

    • US Edition: build_ssl_client_tap_local.sh

    • Export Edition: build_ssl_client_tap_local_export.sh

  3. Superset binaries with support for SW and TAP (Secure Element) private keys (TAP server remote mode)

    • US Edition: build_ssl_client_tap_remote.sh

    • Export Edition: build_ssl_client_tap_remote_export.sh

SSL server scripts

The following SSL server scripts used to build libraries for ssl_server are located in the scripts/nanossl/ssl_server/ directory.

  1. Binaries that support only SW private keys

    • US Edition: build_ssl_server_cap.sh

    • Export Edition: build_ssl_server_export.sh

  2. Superset binaries with support for SW and TAP (Secure Element) private keys (local TAP library mode)

    • US Edition: build_ssl_server_tap_local.sh

    • Export Edition: build_ssl_server_tap_local_export.sh

  3. Superset binaries with support for SW and TAP (Secure Element) private keys (TAP server remote mode)

    • US Edition: build_ssl_server_tap_remote.sh

    • Export Edition: build_ssl_server_tap_remote_export.sh