Signature Provider plugin for SPSDK using PKCS#11 interface
Project description
PKCS#11 Signature Provider
Signature Provider plugin for SPSDK using PKCS#11 interface
Features
- Using a PKCS#11 library to sign data using HSM
- Supported signing schemes: RSA, RSA-PSS, ECDSA
Installation
- Activate virtual env, where you have SPSDK
- to install spsdk run:
pip install spsdk
- to install spsdk run:
pip install spsdk-pkcs11
Usage
-
To use this Signature Provider, you have to update your signature provider configuration string(s) in YAML file(s)
-
Configuration string Parameters:
type: set topkcs11so_path: Path to (or name of) your PKCS#11 library (usually delivered by HSM vendor)- Plugin is looking for the library in current directory, and paths defined in PATH environment variable
- Path can be set also in an environment variable (e.g.: $MY_PKCS_LIB)
user_pin: Pin to your HSM- Pin can be placed directly in the config string (not recommended!)
- You may place your pin into environment variable (e.g: $MY_PKCS_PIN)
- You may place your pin into a file, then simply provide the path
token_labeland/ortoken_serial: Label or serial to identify the Token in your HSM containing your keykey_labeland/orkey_id: Label or ID to identify the key you want to use
-
Configuration string example:
type=pkcs11;so_path:c:/SoftHSM2/lib/softhsm2-x64.dll;user_pin=~/test_pin.txt;token_label=My token 1;key_label=rsa_2048
Limitations
Currently the plugin doesn't wok on Windows when using Python 3.12 (https://github.com/pyauth/python-pkcs11/issues/165)
Credits
This package was created with Cookiecutter and the SPSDK Signature Provider project template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file spsdk_pkcs11-0.3.5.tar.gz.
File metadata
- Download URL: spsdk_pkcs11-0.3.5.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceb4249e652b10da1dd6ed2faee137961d1a6d69c01ea52dc064e1647ee71279
|
|
| MD5 |
6a73cfa0c3498fddadb1c5eebbb33f5a
|
|
| BLAKE2b-256 |
d0ac113128d92bc745b77c2d52200e8068b62c6534a5a2711f8746c4971603b0
|
Provenance
The following attestation bundles were made for spsdk_pkcs11-0.3.5.tar.gz:
Publisher:
deploy.yml on nxp-mcuxpresso/spsdk_plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spsdk_pkcs11-0.3.5.tar.gz -
Subject digest:
ceb4249e652b10da1dd6ed2faee137961d1a6d69c01ea52dc064e1647ee71279 - Sigstore transparency entry: 448070614
- Sigstore integration time:
-
Permalink:
nxp-mcuxpresso/spsdk_plugins@2c97a7dc3bcb323ee948dfa05e956ec0051e4423 -
Branch / Tag:
refs/tags/v3.2.0 - Owner: https://github.com/nxp-mcuxpresso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@2c97a7dc3bcb323ee948dfa05e956ec0051e4423 -
Trigger Event:
push
-
Statement type: