HSM Integration

Description

The HSM menu installs vendor middleware before Stream starts or before an existing appliance state is restored. After middleware installation, configure the HSM in Stream as a PKCS#11 keystore.

Supported HSM integrations

The appliance integrates the following workflows. Use vendor documentation and the approved qualification record to select the middleware release for the target environment.

Provider Integrated scope

Qualification boundary

Thales Luna

Client installation for Network, PCIe, Backup, Remote PED, and USB profiles.

Qualify the middleware, target Luna model, firmware, operating system, driver, and connection profile.

Entrust nShield

Middleware installation, policy prompts, and PKCS#11 configuration.

Qualify the middleware, target model, firmware, Security World, key policy, and host configuration.

Proteccio Bull

Middleware installation, proteccio.rc, and PKCS#11 integration.

Qualify the middleware, target HSM, virtual HSM, and network configuration.

YubiHSM 2

Offline management tools, connector, setup workflow, and PKCS#11 integration.

Qualify the middleware, device firmware, hardware, authentication policy, and ceremony.

Mastercard PKCS#11 tools

Provider-neutral discovery, public-object handling, key and CSR operations, and reports.

These tools do not qualify an HSM or its vendor module.

The HSM > VERIFIED screen displays the package information carried by the running appliance. Use it as local evidence, not as a universal vendor compatibility statement. Record the selected middleware, its integrity evidence, the target HSM and firmware, and the qualification result.

Supported appliance installers

HSM Menu entry Middleware input Stream configuration

YubiHSM

HSM > INSTALL > YUBI

  • Approved YubiHSM shell package

  • Connector package

  • Setup package

PKCS#11 library and configuration from the installed YubiHSM middleware.

nShield Edge

HSM > INSTALL > NSHIELD

Approved nShield middleware ISO.

  • PKCS#11 library path

  • Slot

  • nShield Security World policy

Thales Luna

HSM > INSTALL > LUNA

Approved Luna middleware archive and client configuration.

  • PKCS#11 library path

  • Partition

  • Slot

  • Chrystoki.conf

For Luna USB-only installation, the appliance preserves the vendor-maintained Chrystoki.conf and does not inject the historical Network template. Network selections keep their existing configuration workflow. Hardware qualification remains required for the exact Luna USB model, client, operating system, and driver.

Proteccio Bull

HSM > INSTALL > PROTECCIO

Approved Proteccio middleware ISO and client configuration.

  • PKCS#11 library path

  • Virtual HSM or slot

  • Proteccio backup policy

Vendor preparation

  • YubiHSM

  • nShield Edge

  • Thales Luna

  • Proteccio Bull

Prepare:

  • The YubiHSM device

  • Approved middleware packages

  • Authentication key IDs

  • Connector settings

  • PKCS#11 configuration values

Use YubiHSM for the appliance workflow and YubiHSM PKCS#11 for vendor PKCS#11 behavior.

Prepare:

  • The nShield middleware ISO

  • Security World information

  • Remote Administration policy

  • Extractability decision

  • PKCS#11 library path

Use nShield Edge for the appliance workflow and Entrust nShield documentation for vendor PKCS#11 behavior.

Prepare:

  • The Luna client archive

  • Partition information

  • PKCS#11 library path

Offline CA creates or preserves Chrystoki.conf during middleware installation according to the selected Luna profile; the operator does not prepare this file separately. For USB-only, prepare the physical device and the approved Luna Client archive. Use Thales Luna for the appliance workflow and Thales Luna PKCS#11 for vendor PKCS#11 behavior.

Prepare:

  • The Proteccio middleware ISO

  • Virtual HSM or slot information

  • Client configuration

  • PKCS#11 library path

  • Backup policy reference

Use Proteccio Bull for the appliance-driven middleware installation workflow, Stream PKCS#11 configuration, and backup expectations.

General workflow

  1. Boot the appliance.

  2. Choose Create or Restore.

  3. Open HSM.

  4. Select INSTALL.

  5. Select the middleware required by the target HSM.

  6. Provide the middleware file when prompted.

  7. Complete vendor-specific policy prompts.

  8. Review the installation result.

  9. Start or restore Stream.

  10. In Stream, configure a PKCS#11 keystore with the approved library path, slot, user type, and PIN.

When no HSM middleware has been installed and the operator continues toward START or RESTORE, the appliance displays a confirmation prompt. Proceed only when the approved operation is a software-keystore operation or when the required HSM runtime is already available by another approved procedure.

No HSM middleware installed confirmation

Runtime detection and tools

The appliance checks installed middleware before the operator continues to START or the first RESTORE action. The detection covers:

  • YubiHSM runtime markers, YubiHSM tools, and /etc/yubihsm_pkcs11.conf

  • Luna client binaries and Chrystoki.conf

  • nShield nFast tools

  • Proteccio PKCS#11 library and proteccio.rc.

After YubiHSM middleware is detected, the top-level YUBI menu exposes connection, key-listing, backup, and restore actions. After Proteccio middleware is detected, the top-level PROTECCIO menu remains available as middleware context and points operators to the generic PKCS#11 tools.

PKCS#11 operations menu

The PKCS11 menu appears only when at least one PKCS#11 module is detected or configured. Detection can come from the active PKCS#11 module configuration, managed provider module paths, p11-kit module files, known middleware library locations, or an explicitly configured extra module path.

Use this menu for provider-neutral PKCS#11 checks before configuring Stream:

Menu path Purpose

PKCS11 > SETUP > MODULES

Display configured and detected PKCS#11 modules.

PKCS11 > SETUP > MODULE

Select the active PKCS#11 module for generic operations.

PKCS11 > DISCOVERY > ALL-SLOTS

List slots for the active module.

PKCS11 > DISCOVERY > PROVIDER-SLOTS

Select an installed provider, such as Proteccio, YubiHSM, Luna, or nShield, and list slots through the provider module.

PKCS11 > SETUP > SLOT

Record the numeric slot selected for later PKCS#11 operations.

PKCS11 > DISCOVERY > TOKEN-SLOTS

List slots with a token present.

PKCS11 > DISCOVERY > MECHANISMS

Display mechanisms supported by the active module and slot.

PKCS11 > OBJECTS

Inspect visible PKCS#11 objects, export public certificates/public keys/data objects with p11cat, display public certificates and public keys with p11more, and inspect public object attributes with p11od.

PKCS11 > IMPORT

Import public objects only: certificates with p11importcert, public keys with p11importpubk, and data objects with p11importdata.

PKCS11 > CSR

Generate a PKCS#10 CSR with Mastercard p11req, or build a PKCS#11 URI helper for OpenSSL provider/engine validation.

PKCS11 > DANGER

Delete exactly one selected object with strong confirmation. Token initialization, PIN changes, reset, key wrapping, object move/copy, and attribute mutation are not exposed as generic workflows.

PKCS11 > REPORT

Generate a non-sensitive inventory report. Public objects are listed without login; every section records OK or FAILED, and any failed section makes the action fail even though the partial diagnostic file is retained.

The integrated tools support discovery, public-object import and export, guarded key generation, CSR creation, deletion with confirmation, and non-sensitive reports. If the tools are unavailable, the menu remains visible for diagnostics and reports the missing dependency.

Private-key transfer, token initialization or reset, PIN administration, key wrapping, object move or copy, and attribute changes are outside this generic workflow. Keep PINs, passwords, and private-key material out of reports. Begin with read-only discovery, then configure Stream with the approved module, slot, user type, and PIN.

Verified middleware screen

The HSM > VERIFIED screen lists the middleware identity, runtime paths, and qualification information available on the running appliance. Use it to check that the prepared input matches the approved operation record before recording the target-specific qualification.

HSM procedures

Use the dedicated page for the selected HSM: