External Key Management Providers
Provides an overview of the external key management provider feature, deployment model, generic integration workflow, and HSM technical architecture.
On this page:
Introduction
The External Key Management Provider feature allows you to use your own external keystore, such as a hardware security module Amazon AWS CloudHSM or Entrust HSM as the keystore for Policy Manager PKI keys instead of storing keys in the Akana database.
After you install and configure an external provider on a container, all PKI keys managed through the Manage PKI Keys wizard tasks for every identity type (such as container, service, organization, and user) on that container are stored in the external provider rather than the database.
Deployment considerations
When you deploy the external provider feature, consider the following:
- Install the external provider feature on every container. Install it immediately after you complete the basic container bootstrap step and before the container identity setup task.
- All containers can reference the same external keystore files or different external keystore files, provided that they can access the required HSM keys and aliases.
High-level workflow
Follow this workflow to integrate an external key management provider (applies to all providers):
- Gather prerequisites and set up the integration layer: Complete provider-specific prerequisites by installing the external keystore client software, configuring it to use JCE providers, and registering the HSM's JCE provider in the Java Runtime Environment (JRE).
- Create or identify containers: Create or identify the Community Manager, Policy Manager, Network Director, and other container types.
- Install the external provider feature: Install the feature on each container by using the Admin Console UI or as part of the container creation automation recipe. Later, complete required container features installation and configuration tasks.
- Configure the external provider feature: Configure the feature and specify the connection details.
- Prepare keys in the external keystore: Ensure the required keys are available in the external keystore. Import existing keys or generate keys by using the HSM or provider’s supported tools.
- Assign keys from the external provider: Assign the appropriate keys to the identity types used in the following scenarios:
- TLS handshakes: Containers, listeners, and services.
- Encryption/Signing message or JWT token in the Akana OAuth/OIDC provider: Organization identity users.
- SAML request encryption and signing: SAML Web SSO signing keys.
- WS-Security encryption and signing: Containers, listeners, and services.
- Configure preferred signing providers: Set up signing providers for JOSE and OAuth policies where separate signing/encryption providers are needed.
- Verify the installation: Confirm the external provider is working correctly.
Assigning a tenant theme certificate from Community Manager is not supported. Use the Assign Tenant Theme PKI API instead.
Key integration details
The following table summarizes key aspects of HSM integration and configuration:
| Aspect | Details |
|---|---|
| Integration point | Java Cryptography Architecture (JCA) provider registered in java.security, loaded from a vendor .jar. |
| Where keys live? | Keys never leave the HSM; Akana references them by alias. |
| JVM setup required? | Yes. Configure the provider in the java.security file or a custom java.security file. Make the provider .jar file available to the JVM by referencing it. |
| Auth model | Keystore password/OCS passphrase, presented once per keystore configuration. Some HSM may not use a password. |
| "Assign key" to identities | Assign PKI Keys and X.509 Certificate from configured keystore by specifying alias and optionally password. |
| Performance tuning for JOSE/OAuth | Set CryptoProvider/"Signing JCA Provider" to the HSM's provider. |
| Key export | Always disabled (private key material cannot leave the device). |