This example shows how to use DTLS with wolfSSL
This example is configured to use socks instead of sockets (over GNRC). It's possible to use POSIX sockets, which give a more similar approach to the UNIX version of wolfSSL. POSIX sockets are supported by RIOT-OS via lwIP, but no example is available at this time.
./../../dist/tools/tapsetup/tapsetup --create 2
$ make all; PORT=tap1 make term
> ifconfig
copy the server address
> dtlss
$ PORT=tap0 make term
> dtlsc <IPv6's server address[%netif]>
Test certificate and key arrays are provided in cert.c
. You can generate your own arrays starting from existing certificate and key in .der format using xxd -i
.
Riot-to-host can be tested against the DTLS examples provided in the wolfSSL-examples repository.
Boards that due to insufficient memory are not able to support GNRC are included
in the BOARD_INSUFFICIENT_MEMORY
.