You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkcs11/README.md
+108Lines changed: 108 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,114 @@ See [PKCS11.md](./PKCS11.md) in this folder.
159
159
It should be noted WOLFSSL_PKCS11_RW_TOKENS is only needed for adding the keys and certs to the store. Once already in the store this is no longer needed.
160
160
161
161
162
+
## Setting up and testing OP-TEE
163
+
164
+
[OP-TEE](https://optee.readthedocs.io/) provides a PKCS #11 trusted
165
+
application, so private keys can be generated and used inside the TrustZone
166
+
secure world and never appear in normal-world memory. This has been tested on
167
+
an NXP i.MX95 running OP-TEE 4.4, but nothing here is board specific.
168
+
169
+
1. Build OP-TEE with the PKCS #11 trusted application
170
+
171
+
The TA is not in every OP-TEE build. Enable it with `CFG_PKCS11_TA=y` and
172
+
install the resulting `fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta` where
173
+
`tee-supplicant` looks for TAs. You also need the `optee_client` userspace:
174
+
`tee-supplicant`, `libteec.so.2` and `libckteec.so.0`.
175
+
176
+
2. Make sure `tee-supplicant` is running
177
+
178
+
Every PKCS #11 call fails at `C_Initialize` without it, because the TA
179
+
cannot be loaded. If the libraries are not in the default library path,
0 commit comments