Skip to main content
This document provides information about configuring an Excrypt HSM with OpenBao by using the Futurex PKCS #11 library. For additional questions about your HSM, see the relevant administrator guide.

OpenBao HSM capabilities

OpenBao provides the following HSM integration capabilities:

Root key wrapping and automatic unsealing

The seal stanza configures the seal type that OpenBao uses to encrypt and decrypt its root key with an HSM. This eliminates the need to designate key officers who must be physically available to unseal OpenBao nodes, a common operational burden in large organizations that deploy OpenBao immutably at scale.
Auto-unseal removes the need for operators to be present at every startup, but OpenBao still generates a set of recovery keys at initialization time. In OpenBao v2.5.3 and later, use recovery keys in combination with authenticated operator tokens to authorize privileged administrative operations. Specifically:
  • To rotate recovery key shares, create a token with sudo capabilities on the rotation paths.
  • To generate a new root token, temporarily re-enable the unauthenticated root generation endpoints in the listener configuration, then submit recovery key shares to complete the operation.
Distribute recovery keys to trusted personnel and store them securely. Create a dedicated rotation operator token before revoking the initial root token. See Appendix: Rekey and rotate OpenBao for the full procedure.
OpenBao activates HSM PKCS #11 support either through the presence of a seal "pkcs11" block in the configuration file, or through the BAO_HSM_LIB environment variable and BAO_SEAL_TYPE set to pkcs11.

External key backing

The OpenBao External Keys feature lets secrets engine mounts use HSM-resident key material on a per-namespace basis. OpenBao creates no key material at the association step. The key must already exist on the HSM, and the configuration step is a linking operation only.
Unlike Vault Enterprise Managed Keys (a feature not present in OpenBao), OpenBao requires all key material to be created externally on the HSM before you can link it to a secrets engine mount.

Benefits of external key backing

  • Provides hardware-level protection for cryptographic material used by individual mount types, including PKI, SSH, Transit, and Identity.
  • Prevents cross-mount usage of keys except through explicit, auditable reuse grants.
  • Enables fine-grained permission delegation through the standard OpenBao ACL model.
  • Supports deployment in high-security governance, risk management, and compliance (GRC) environments, such as PCI-DSS and HIPAA, where you need hardware-enforced key boundaries for external audits.

OpenBao versions

HSM support isn’t available in the standard OpenBao package. This integration uses the official openbao-hsm package, which includes the built-in PKCS #11 seal.
OpenBao 2.7.0 removed the built-in PKCS #11 seal and discontinued the openbao-hsm packages. See Install OpenBao with HSM support.

Guardian integration

The Guardian Series 3 introduces mission-critical viability to core cryptographic infrastructure, including:
  • Centralization of device management
  • Elimination of points of failure
  • Distribution of transaction loads
  • Group-specific function blocking
  • User-defined grouping systems
See the applicable guide in the Futurex Portal for configuring HSMs with the Guardian Series 3, including PKCS #11 and CNG configuration.