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
- Ensure the OpenSSL bin directory is on PATH (avoid copying DLLs into Windows system directories)3. The PKCS#11 library for your HSM (usually a .dll file)
27
-
- Prefer specifying its absolute path via PKCS11_LIB_PATH or placing it alongside the application.
28
-
- Avoid copying into C:\Windows\System32 to reduce DLL hijack and servicing risk.Installation Steps for Windows:
25
+
- Choose the "Win64 OpenSSL" version.
26
+
- Ensure the OpenSSL bin directory is on PATH.
29
27
30
-
1. Install the prerequisites in the order listed above
28
+
3. **The PKCS#11 library for your HSM** (usually a ``.dll`` file)
29
+
- Prefer specifying its absolute path via ``PKCS11_LIB_PATH`` or placing it alongside the application.
30
+
- Avoid copying into ``C:\Windows\System32`` to reduce DLL hijacking risks.
31
31
32
-
2. Install python-pkcs11:
33
-
.. code-block:: powershell
34
-
pip install python-pkcs11
35
-
If you get a "Failed building wheel" error:
36
-
- Make sure Visual Studio Build Tools are installed
37
-
- Ensure OpenSSL is installed and in your PATH
38
-
- Try running the command in a new terminal after installing the prerequisites
32
+
Installation Steps for Windows:
33
+
34
+
1. Install the prerequisites in the order listed above.
35
+
2. Install ``python-pkcs11``:
36
+
37
+
.. code-block:: shell
38
+
39
+
pip install python-pkcs11
40
+
41
+
If you get a "Failed building wheel" error, ensure prerequisites are installed correctly and try running the command in a new terminal.
39
42
40
43
Configuration
41
-
------------
44
+
-------------
42
45
43
46
The following environment variables can be used to configure the PKCS#11 device:
44
47
45
-
- ``PKCS11_LIB_PATH``: Path to the PKCS#11 library (required)
46
-
- ``PKCS11_TOKEN_LABEL``: Label of the token to use (default: "Bitcoin")
48
+
- ``PKCS11_LIB_PATH``: **(Required)** Path to the PKCS#11 library.
49
+
- ``PKCS11_TOKEN_LABEL``: Label of the token to use (default: "Bitcoin").
50
+
- ``PKCS11_PIN``: User PIN for token login. For security, it is better to rely on the interactive prompt than to set this variable.
0 commit comments