Skip to main content

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
  • 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.

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

spsdk_pkcs11-0.3.6.tar.gz (8.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: spsdk_pkcs11-0.3.6.tar.gz
  • Upload date:
  • Size: 8.6 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.6.tar.gz
Algorithm Hash digest
SHA256 61960b1841dfdf4cb5dbd43b64c29049b08fa8ef7fc3211244d6de64d08d66c4
MD5 271f4937dc94e5fd6690bf0090ededc6
BLAKE2b-256 829148dc99f1b68dcf8d141e0347a0ff4f0593ea60562149300866d043a146c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for spsdk_pkcs11-0.3.6.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page