zephyr/tests/net/socket
Valerio Setti 91fa8a2b63 tests: net: socket_tls: test different TLS configurations with sockets
This commit adds a test to showcase how to configure TLS 1.2 and 1.3
socket connections against an OpenSSL server. Only a limited number
of combinations are available for now:

- TLS 1.2
	- RSA certificate and key exchange.
	- ECDSA certificate and ECDHE key exchange.

- TLS 1.3 only supports ephemeral (ECDHE) key exchange with/without
  session tickets.

Since the goal is to test TLS connection and not low level ethernet
functionalities or similar, the only supported platform is "native_sim"
where Linux sockets are used to connect to the OpenSSL server locally.

The idea is that the Zephyr application acts a client and tries to connect
to the OpenSSL server running on the same PC. For sake of simplificity a
bash script is provided to start the OpenSSL server properly.
For completeness a bash script is also provided to re-generate
certificates and keys.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-09-12 13:31:20 -04:00
..
af_packet everywhere: replace double words 2024-06-22 05:40:22 -04:00
af_packet_ipproto_raw posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
can tests/net: Use hwmv2 native targets identifiers 2024-03-15 16:13:12 +01:00
getaddrinfo lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
getnameinfo tests: net: Exclude native_posix because of socket service 2024-05-20 14:25:44 +03:00
misc tests: net: sockets: misc: Fix SO_BINDTODEVICE test 2024-07-27 10:44:48 +03:00
net_mgmt tests: net: sockets: Remove use of NET_SOCKETS_POSIX_NAMES 2024-03-27 13:40:13 -05:00
offload_dispatcher fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
poll posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
register net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
reuseaddr_reuseport posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
select posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
service net: sockets: Remove async service support 2024-07-10 11:36:59 +02:00
socketpair posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
tcp tests: net: socket: Add tests for tracing 2024-06-26 15:49:43 +02:00
tls posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
tls_configurations tests: net: socket_tls: test different TLS configurations with sockets 2024-09-12 13:31:20 -04:00
tls_ext posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
udp tests: net: socket: udp: clear control data buffer before recvmsg 2024-08-23 15:50:37 +01:00
websocket misc: move lorem ipsum text to zephyr/misc/lorem_ipsum.h 2024-08-02 03:31:06 -04:00
socket_helpers.h tests: net: sockets: Remove use of NET_SOCKETS_POSIX_NAMES 2024-03-27 13:40:13 -05:00