Skip to content

Commit 09786e3

Browse files
authored
Merge pull request #150 from LinuxJedi/file-store-safety
Add file storage safety to wolfPKCS11
2 parents 81af264 + a93cf0c commit 09786e3

File tree

4 files changed

+351
-118
lines changed

4 files changed

+351
-118
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ NOTE: In the code, we have embedded a test key. This must be changed for
9898

9999
### WOLFPKCS11_TOKEN_PATH
100100

101-
Path into which files are stored that contain token data.
102-
When not set, defaults to: /tmp
101+
Path into which files are stored that contain token data. If unset, wolfPKCS11
102+
tries, in order, the directory specified by `WOLFPKCS11_TOKEN_PATH`, any store
103+
directory configured by NSS, the user's home directory (`~/.wolfPKCS11` on
104+
POSIX or `%APPDIR%\wolfPKCS11` on Windows), and finally the optional
105+
`WOLFPKCS11_DEFAULT_TOKEN_PATH` build-time setting. There is no fallback to
106+
`/tmp`; deployments must provide a secure storage location explicitly.
103107

104108
### WOLFPKCS11_NO_STORE
105109

@@ -287,4 +291,3 @@ Adds backend support for TPM 2.0 using wolfTPM. Adds AES CBC key wrap / unwrap s
287291
### wolfPKCS11 Release 1.0 (October 20, 2021)
288292

289293
* Initial PKCS11 support
290-

0 commit comments

Comments
 (0)