EdgexAgent/device-ble-go/vendor/github.com/openziti/identity/engines/pkcs11
2025-07-10 20:40:32 +08:00
..
.gitignore 添加gitignore 2025-07-10 20:40:32 +08:00
disable_pkcs11.go 添加gitignore 2025-07-10 20:40:32 +08:00
engine.go 添加gitignore 2025-07-10 20:40:32 +08:00
id.go 添加gitignore 2025-07-10 20:40:32 +08:00
init-test-data.bat 添加gitignore 2025-07-10 20:40:32 +08:00
init-test-data.sh 添加gitignore 2025-07-10 20:40:32 +08:00
README.md 添加gitignore 2025-07-10 20:40:32 +08:00
softhsm2.conf 添加gitignore 2025-07-10 20:40:32 +08:00

PKCS#11 engine

Testing

Tests in this package use Software HSM for testing. The tests will skip if softhsm2 driver is not found. Install softhsm2 if you want to run these tests. Directory softhsm-testdata contains predefined token with keys expected by the tests.

If the driver is installed but not being detected you can set the SOFTHSM2_LIB environment variable to inform the test where to find the library:

# linux
$ export SOFTHSM2_LIB=/usr/local/lib/softhsm/libsofthsm2.so

# windows
SET SOFTHSM2_LIB=V:/dev/tools/softhsm2/lib/softhsm2-x64.dll