@@ -42,31 +42,16 @@ Test certificates in PEM format are committed to the repo at :zephyr_file:`sampl
4242build process the certificates are converted to a C header file that is included by the Wi-Fi shell
4343module.
4444
45- If you want to use your own certificates, you can replace the existing certificates with your own certificates in the same directory.
46-
4745.. code-block :: bash
4846
49- $ export WIFI_TEST_CERTS_DIR=samples/net/wifi/test_certs/rsa3k
50- $ cp client.pem $WIFI_TEST_CERTS_DIR
51- $ cp client-key.pem $WIFI_TEST_CERTS_DIR
52- $ cp ca.pem $WIFI_TEST_CERTS_DIR
53- $ cp client2.pem $WIFI_TEST_CERTS_DIR
54- $ cp client-key2.pem $WIFI_TEST_CERTS_DIR
55- $ cp ca2.pem $WIFI_TEST_CERTS_DIR
47+ $ cp client.pem samples/net/wifi/test_certs/
48+ $ cp client-key.pem samples/net/wifi/test_certs/
49+ $ cp ca.pem samples/net/wifi/test_certs/
50+ $ cp client2.pem samples/net/wifi/test_certs/
51+ $ cp client-key2.pem samples/net/wifi/test_certs/
52+ $ cp ca2.pem samples/net/wifi/test_certs/
5653 $ west build -p -b < board> samples/net/wifi -S wifi-enterprise
5754
58- or alternatively copy ``rsa2k `` certificates by changing the ``WIFI_TEST_CERTS_DIR `` environment variable.
59-
60- .. code-block :: bash
61-
62- $ export WIFI_TEST_CERTS_DIR=samples/net/wifi/test_certs/rsa2k
63-
64- or you can set the :envvar: `WIFI_TEST_CERTS_DIR ` environment variable to point to the directory containing your certificates.
65-
66- .. code-block :: bash
67-
68- $ west build -p -b < board> samples/net/wifi -S wifi-enterprise -- -DWIFI_TEST_CERTS_DIR=< path_to_your_certificates>
69-
7055 Run time certificates
7156---------------------
7257
@@ -77,7 +62,7 @@ To facilitate installation of the certificates, a helper script is provided in t
7762
7863.. code-block :: bash
7964
80- $ samples/net/wifi/test_certs/install_certs .py -p samples/net/wifi/test_certs/rsa2k
65+ $ ./scripts/utils/wifi_ent_cert_installer .py -p samples/net/wifi/test_certs/rsa2k
8166
8267 The script will install the certificates in the ``rsa2k `` directory to the TLS credentials store in the device over UART and using TLS credentials shell commands.
8368
0 commit comments