> ## Documentation Index
> Fetch the complete documentation index at: https://docs.futurex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenBao

> Overview of integrating Futurex HSMs with OpenBao using PKCS #11, including architecture, auto-unseal, and integration scope. For additional questions about your HSM, see the relevant administrator guide.

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:

| Functionality | Description |
| - | - |
| **Root key wrapping** | OpenBao protects its root key by encrypting it with an RSA key pair on the HSM through the PKCS #11 API. The HSM handles unsealing automatically, and OpenBao still generates a set of recovery keys at initialization time for privileged administrative operations. |
| **Automatic unsealing** | OpenBao stores its encrypted root key in storage, which allows for automatic unsealing without manual operator intervention at startup. |
| **External key backing** | You can link HSM-backed key material to OpenBao secrets engines on a per-namespace, per-mount basis to strengthen protection of Critical Security Parameters. |
| **Transit secrets engine** | The OpenBao transit engine performs cryptographic operations against externally managed key material, optionally backed by the connected HSM. |

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

> [!NOTE]
>
> 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](https://docs.futurex.com/Integrations/HSM/Secrets_management/OpenBao/Appendix_Rekey_and_rotate_OpenBao.md) 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.

> [!NOTE]
>
> 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 version | PKCS #11 seal | Use with this integration |
| - | - | - |
| 2.6.x, `openbao-hsm` package | Built in | Yes. Use an RSA seal key with the `CKM_RSA_PKCS_OAEP` mechanism. |
| 2.6.x, standard `openbao` package | Not included | No. OpenBao fails to start when the configuration contains a `seal "pkcs11"` stanza. |
| 2.7.0 and later | Through the external `kms-pkcs11` plugin only | Not yet. The plugin doesn't work with the Futurex PKCS #11 library. |

> [!NOTE]
>
> OpenBao 2.7.0 removed the built-in PKCS #11 seal and discontinued the `openbao-hsm` packages. See [Install OpenBao with HSM support](https://docs.futurex.com/Integrations/HSM/Secrets_management/OpenBao/Install_patched_version_of_OpenBao.md).

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