Skip to main content

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
  • 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 to pkcs11
    • so_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_label and/or token_serial: Label or serial to identify the Token in your HSM containing your key
    • key_label and/or key_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

Credits

This package was created with Cookiecutter and the SPSDK Signature Provider project template.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spsdk_pkcs11-0.3.8.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file spsdk_pkcs11-0.3.8.tar.gz.

File metadata

  • Download URL: spsdk_pkcs11-0.3.8.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spsdk_pkcs11-0.3.8.tar.gz
Algorithm Hash digest
SHA256 fc7b61eed173a549fe84bb8c40b18660bc884ebccd46fe8ac83604ac6d0f9d6c
MD5 f3aae6e24a7ed0b10263d77d346d09ab
BLAKE2b-256 804135688a788148105fda438c215a85c527fe12c925f974939f245a13ef25c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for spsdk_pkcs11-0.3.8.tar.gz:

Publisher: deploy.yml on nxp-mcuxpresso/spsdk_plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.8 This release

1 file

0.3.6

1 file

0.3.5

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page