diff --git a/samples/net/sockets/http_get/README.rst b/samples/net/sockets/http_get/README.rst index 46233ec4a19..07c03fa1fae 100644 --- a/samples/net/sockets/http_get/README.rst +++ b/samples/net/sockets/http_get/README.rst @@ -56,6 +56,9 @@ Enable TLS support in the sample by building the project with the An alternative way is to specify ``-DOVERLAY_CONFIG=overlay-tls.conf`` when running ``west build`` or ``cmake``. +For boards that support TLS offloading (e.g. TI's cc3220sf_launchxl), use +``overlay-tls-offload.conf`` instead of ``overlay-tls.conf``. + The certificate used by the sample can be found in the sample's ``src`` directory. The certificate was selected to enable access to the default website configured in the sample (https://google.com). To access a different web page diff --git a/samples/net/sockets/http_get/boards/cc3220sf_launchxl.conf b/samples/net/sockets/http_get/boards/cc3220sf_launchxl.conf index c3ff2c774d0..1b8312b7832 100644 --- a/samples/net/sockets/http_get/boards/cc3220sf_launchxl.conf +++ b/samples/net/sockets/http_get/boards/cc3220sf_launchxl.conf @@ -9,8 +9,7 @@ CONFIG_WIFI=y CONFIG_WIFI_SIMPLELINK=y CONFIG_NET_SOCKETS_OFFLOAD=y -# Enable Secure Socket Offload -CONFIG_NET_SOCKETS_SOCKOPT_TLS=y +# Enable TLS credential filenames for secure socket offload CONFIG_TLS_CREDENTIAL_FILENAMES=y # Disable unneeded settings from the base prj.conf: diff --git a/samples/net/sockets/http_get/overlay-tls-offload.conf b/samples/net/sockets/http_get/overlay-tls-offload.conf new file mode 100644 index 00000000000..22159ff91bc --- /dev/null +++ b/samples/net/sockets/http_get/overlay-tls-offload.conf @@ -0,0 +1 @@ +CONFIG_NET_SOCKETS_SOCKOPT_TLS=y