Example applications using the wolfSSL lightweight SSL/TLS library
 
 
 
 
 
 
Go to file
David Garske f0798df233 RSA PSS Example 2019-02-13 14:14:51 -08:00
SGX_Linux fix spelling error on function and cast return value 2018-07-10 10:55:44 -06:00
SGX_Windows Merge pull request #99 from JacobBarthelmeh/sgx 2018-07-30 12:34:36 -06:00
android update Android Studio example project 2018-11-15 14:58:42 -07:00
btle Added DEBUG_WOLFSSL to the debug flags in Makefile. Thanks Kaleb. 2017-07-31 16:04:47 -07:00
certfields add cert field extraction example 2016-08-25 11:50:26 -06:00
certgen Fix for wc_SignCert reponse code checking in CSR example. 2018-01-23 15:21:28 -08:00
certmanager Added cert manager load buffer example (thanks Kaleb). 2018-08-12 15:45:42 -07:00
certs add simple CMS examples for different content types 2018-11-15 13:52:54 -07:00
crypto RSA PSS Example 2019-02-13 14:14:51 -08:00
custom-io-callbacks Update README.md 2016-12-27 10:52:42 -07:00
dtls DTLS over IPv6: examples (#102) 2018-07-25 09:32:24 -07:00
ecc Fix for free() issue on the ecc-stack example. Requires PR https://github.com/wolfSSL/wolfssl/pull/1711 2018-07-23 16:04:25 -07:00
mynewt add mynewt test script for jenkins. 2018-08-22 21:47:45 +09:00
pkcs7 conditionally compile CMS SignedData detached signature example based on wolfSSL version 2018-11-26 16:13:46 -08:00
pkcs11 Updates to README.md and PKCS11.md documents. Cleanup to use sizeof for `privKeyId` in TLS server example. 2019-02-13 13:41:52 -08:00
psk Fixed tab indentations. Moved struct in client-psk-nonblocking to top of block 2017-06-01 13:15:56 -06:00
signature Add simple RSA sign and verify examples 2018-11-15 08:20:13 +10:00
tirtos_ccs_examples Update README.md 2017-11-03 14:48:02 -06:00
tls added define fixes to stop errors when executing make in tls dir 2018-09-06 13:11:24 -06:00
utasker
wolfCLU Fix typos and potential leaks in ECC as well 2019-02-04 10:43:15 -07:00
.gitignore RSA PSS Example 2019-02-13 14:14:51 -08:00
.gitmodules Add Android Studio Gradle project example 2017-08-29 10:37:37 -06:00
README.md First pass at a BTLE example for ECC encrypt scheme. 2017-07-17 20:20:32 -07:00

README.md

wolfSSL Example Applications

This repository contains example applications, written in C, which demonstrate how to use the wolfSSL lightweight SSL/TLS library for secure communication.

Each directory represents a unique topic (SSL/TLS, DTLS, PSK, etc.) and contains a Makefile as well as a simple tutorial on the given topic.

Current Examples

utasker (uTasker wolfSSL Example Tasks)

This directory contains example uTasker client and server tasks that demonstrate using wolfSSL with the uTasker stack. These have been tested on the uTasker Simulator.

Please see the README.md in utasker/ for further usage and details.

android (Android NDK Examples)

This directory contains examples that demonstrate using wolfSSL and wolfSSLJNI on the Android platform, using the Android NDK toolchain.

Please see the README.md in android/ for further usage and details.

certfields (X509 field extraction)

This directory contains an example that demonstrate using the wolfSSL to read a DER encoded certificate and extract the public key and subject name information.

Please see the README.md in certfields/ for further usage and details.

certmanager (wolfSSL CertManager)

This directory contains examples that demonstrate using the wolfSSL CertManager (Certificate Manager) functionality.

Please see the README.md in certmanager/ for further usage and details.

wolfCLU (wolfSSL Command Line Utility)

This is a tool to provide command line access to wolfcrypt cryptographic libraries. wolfSSL command line utility will allow users to encrypt or decrypt a user specified file to any file name and extension.

Please see the README.md in clu/ for further usage and details.

Unique feature to wolfSSL CLU

The decision to allow for unique file extensions was prompted by automated tools available for brute forcing files. It will not provide extra security cryptographically however it will force attackers to check the header information on every single brute force attempt. This will provide further frustration and an extra step in any attempt to brute force a file encrypted with our utility.

DTLS (Datagram TLS)

This directory contains examples of using DTLS, with client and server examples demonstrating UDP, DTLS, non-blocking, session resumption, and multi-threading.

When compiling wolfSSL for use with these examples, wolfSSL will need to be compiled with DTLS support:

cd wolfssl-[version]
./configure --enable-dtls

Examples in this directory may be compiled using:

cd ./dtls
make

PSK (Pre-Shared Keys)

This directory contains examples of using PSK, with client and server examples demonstrating TCP/IP, PSK, non-blocking, session resumption, and multi-threading.

When compiling wolfSSL for use with these examples, wolfSSL will need to be compiled with PSK support:

cd wolfssl-[version]
./configure --enable-psk

Examples in this directory may be compiled using:

cd ./psk
make

SSL/TLS

This directory contains examples of using SSL/TLS, with client and server examples demonstrating TCP/IP, SSL/TLS, non-blocking, session resumption, and multi-threading.

Examples in this directory may be compiled using:

cd ./tls
make

BTLE

This directory contains examples for securing a Bluetooth Low Energy Link (BTLE). BTLE packets are small and throughput is low, so these examples demonstrate a way to exchange data securley without BTLE pariing.

Notes

When necessary, examples will use the example certificates and keys located in the ./certs directory. These certificates and keys have been pulled in from the main wolfSSL repository.

Support

Please contact wolfSSL at support@wolfssl.com with any questions, bug fixes, or suggested feature additions.