EJBCA SignServer
EJBCA SignServer

Security: Configuring an Entrust nShield HSM

Hardware Security Module (HSM)

A Hardware Security Module (HSM) can be configured to store and protect cryptographic keys in a centralized, high-assurance appliance, providing a root of trust for sensitive cryptographic data transactions.

The following describes how to configure an Entrust nShield HSM for the Software Appliance by registering the Software Appliance and connecting it to the HSM.

For more information on the Entrust nShield HSM, refer to the Entrust product documentation that you received with your purchase of the HSM.

As already announced, support for the following HSM version has been discontinued:

  • nShield Security World 12.80.4

The following versions of the Security World software package from Entrust are available:
13.4.4, 13.9.0 and 13.9.6.

  • The Entrust nShield Connect HSM can be used with all three versions.

  • The nShield 5c HSM is only supported with versions 13.9.0 and 13.9.6.

Choose between one of the following options:

  • nShield Security World 13.4.4

  • nShield Security World 13.9.0

  • nShield Security World 13.9.6

To configure an Entrust nShield HSM for your Software Appliance, follow the steps below.

Supported Entrust HSM Features

The Software Appliance supports the following Entrust nShield features:

  • Preload of any Operator CardSets with a k/n quorum.

  • Preload with HA of any 1/n quorum Operator CardSet (n>= number of connected HSMs).

  • Connection of any 1/n Operator CardSet without preload functionality

  • Softcards

Post Quantum Cryptography (PQC)
In order to use PQC algorithms the HSM firmware needs to support it and you need to select nShield Security World 13.9.0 or 13.9.6.

:info:

If you run into issues after the configuration, you can get HSM specific log messages from a HSM Support Package. For further information please refer to Create an HSM Log.

Connect the Software Appliance with the Entrust nShield HSM

  1. Log in to your Software Appliance and open the Security page or click Configure HSM in the Overview.

  2. In the HSM Configuration section, click + Add External HSM in the HSM Selection field.

    Screenshot 2025-11-05 at 12.27.21-20251105-112726.png


  3. The Add an external HSM window opens.
    Select Entrust nShield to access the Configuration fields.

  4. Click Select HSM Type to continue. 

    Screenshot 2025-11-05 at 13.43.35-20251105-124340.png


  5. The HSM Client Version section is displayed on the Security page.

  6. Click on the HSM client version to be used.

    Screenshot 2026-10-21 at 15.04.42-20261021-130447.png
  7. Click Add HSM Device.
    The corresponding form for the certificate opens.

    • HSM IP Address / FQDN:
      Enter the IP address or the Fully Qualified Domain Name (FQDN) of the HSM.
      Only IPv4 addresses are supported.

    • The HSM Port is already set by default.

    • Device Information:
      Enter the Electronic Serial Number (ESN).
      Enter the nShield Integrity Key Hash of the Entrust nShield.

  8. Confirm your entries with Add HSM Device.

    Screenshot 2025-05-21 at 15.38.31-20250521-133836.png


  9. A modal dialog requests Save HSM Configuration.
    This will restart all applications on the appliance.

  10. Proceed with Activate or abort with Cancel.


The HSM device is now configured and displayed in a table in the nShield HSM Devices section.
Here you can now preform actions such as Edit Device or Remove Device.

grafik-20250521-135250.png

The status is also displayed on the Overview page in the section HSM Overview.
Click Configure HSM to go back to the HSM Configuration on the Security page.

grafik-20250521-124710.png


Usage Information

CryptoWorker Configuration
The following note can be found in the info box:

In order to use this HSM in SignServer, you need to select the following
PKCS#11 library in the P11NG CryptoWorker configuration:
Reference: PKCS#11 Proxy - Entrust nShield HSM

The last line in Usage Information displays the options:

Remove HSM Configuration

To remove the HSM configuration you need to type REMOVE HSM CONFIGURATION into the Confirm Action field.
Click Remove to remove the configuration
or Cancel to close the modal dialog.

If Remove is chosen the application will restart.

If changes have been made to the sections:

  • HSM Client Authentication Configuration

  • Secure Channel Client Configuration

  • Miscellaneous Configurations

these changes can be undone with Cancel
or saved with Save HSM Configuration.

Abort

Click Abort to terminate the process of configuring a HSM.
This will reset your settings.

Save HSM Configuration

Click Save HSM Configuration to save changes made on the HSM configuration.

On the Security page:

the status of the HSM Driver will change from
Not Connected to
Connected as soon as the configuration is completed.

On the Overview page:

the status in the HSM Overview also changes to Connected as soon as the configuration is completed.

During configuration, the Software Appliance is in the Restarting status. It is unavailable throughout this time.

High Availability (HA) with Multiple nShield HSMs

To ensure high availability and uninterrupted operation even in the event of a component failure, additional HSMs can be configured.

Proceed as described in Add HSM Device and repeat the steps to configure additional HSM(s).

For version nShield Security World 13.9.6

The Software Appliance supports high availability without requiring the use of preload.

  • The appliance automatically detects when an HSM is no longer available or becomes available again, and continues to operate as long as at least one HSM is accessible.
    The appliance checks HSM availability approximately every 60 seconds.
    Because this interval cannot be modified, changes in HSM availability may not be detected immediately.

  • Once the HSM becomes available again, the application continues to operate without a restart.

For version nShield Security World 13.4.4 and nShield Security World 13.9.0

  • The HSMs are used only for load balancing across the configured devices.

  • Changes in HSM availability aren’t detected automatically.

  • The application must be restarted to use an HSM once it’s available again.

  • If high availability is required in any of these versions, use the preload function.
    See CardSet Operations.


For further information, refer to nShield release notes.