Skip to content

Commit 060d536

Browse files
krish2718rlubos
authored andcommitted
[nrf fromlist] samples: net: wifi: remove rsa2k enterprise test certs
TF-PSA-Crypto cannot decrypt DES-encrypted PKCS#8 private keys. Remove the rsa2k certificate set and point Wi-Fi docs at rsa2k_no_des. Upstream PR #: 109798 Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent fb7fcba commit 060d536

9 files changed

Lines changed: 7 additions & 239 deletions

File tree

doc/connectivity/networking/api/wifi.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ If you want to use your own certificates, you can replace the existing certifica
8484
$ cp ca2.pem $WIFI_TEST_CERTS_DIR
8585
$ west build -p -b <board> samples/net/wifi -S wifi-enterprise
8686
87-
or alternatively copy ``rsa2k`` certificates by changing the ``WIFI_TEST_CERTS_DIR`` environment variable.
87+
For RSA 2048-bit certificates, use ``rsa2k_no_des``.
8888

8989
.. code-block:: bash
9090
91-
$ export WIFI_TEST_CERTS_DIR=samples/net/wifi/test_certs/rsa2k
91+
$ export WIFI_TEST_CERTS_DIR=samples/net/wifi/test_certs/rsa2k_no_des
9292
9393
or you can set the :envvar:`WIFI_TEST_CERTS_DIR` environment variable to point to the directory containing your certificates.
9494

@@ -106,9 +106,9 @@ To facilitate installation of the certificates, a helper script is provided, see
106106

107107
.. code-block:: bash
108108
109-
$ ./scripts/utils/wifi_ent_cert_installer.py -p samples/net/wifi/test_certs/rsa2k
109+
$ ./scripts/utils/wifi_ent_cert_installer.py -p samples/net/wifi/test_certs/rsa2k_no_des
110110
111-
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.
111+
The script will install the certificates to the TLS credentials store in the device over UART and using TLS credentials shell commands.
112112

113113

114114
To initiate a Wi-Fi connection using enterprise security, use one of the following commands depending on the EAP method:
@@ -184,7 +184,7 @@ Different EAP methods have varying client-side certificate requirements, as outl
184184
How to Generate Test Certificates Using FreeRADIUS
185185
--------------------------------------------------
186186

187-
The test certificates in ``samples/net/wifi/test_certs/rsa2k`` are generated using the `FreeRADIUS raddb/certs scripts <https://github.com/FreeRADIUS/freeradius-server/tree/master/raddb/certs>`_. You can generate your own certificates for testing as follows:
187+
The test certificates in ``samples/net/wifi/test_certs/rsa2k_no_des`` are generated using the `FreeRADIUS raddb/certs scripts <https://github.com/FreeRADIUS/freeradius-server/tree/master/raddb/certs>`_. You can generate your own certificates for testing as follows:
188188

189189
1. **Prerequisites**
190190
- Install OpenSSL and GNU Make.
@@ -224,7 +224,8 @@ The test certificates in ``samples/net/wifi/test_certs/rsa2k`` are generated usi
224224
+-------------------+---------------------+
225225

226226
6. **Copy the files**
227-
Place the renamed files in your Zephyr project's certificate directory (e.g., ``samples/net/wifi/test_certs/rsa2k``).
227+
Place the renamed files in your Zephyr project's certificate directory (e.g., ``samples/net/wifi/test_certs/rsa2k_no_des``).
228+
Encrypt private keys with AES (PBES2), not DES; see the existing ``rsa2k_no_des`` keys for reference.
228229

229230
.. note::
230231
These certificates are for testing only and should not be used in production.

samples/net/wifi/test_certs/rsa2k/ca.pem

Lines changed: 0 additions & 29 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/ca2.pem

Lines changed: 0 additions & 29 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/client-key.pem

Lines changed: 0 additions & 30 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/client-key2.pem

Lines changed: 0 additions & 30 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/client.pem

Lines changed: 0 additions & 27 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/client2.pem

Lines changed: 0 additions & 27 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/server-key.pem

Lines changed: 0 additions & 30 deletions
This file was deleted.

samples/net/wifi/test_certs/rsa2k/server.pem

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)