Privileged access management
Curity

Configure the Futurex PKCS #11 library in Curity

6min

Perform the following tasks to configure Curity:

  1. Enable and configure the HSM.
  2. Configure the key stored on the HSM in Curity for TLS.
  3. Verify key usage.
  4. Verify key usage - Web browser.

The following sections explain the necessary steps for these actions:

1 | Enable and configure the HSM

1

Log in to the Curity Admin portal.

2

In the left-hand menu, go to General.

3

Scroll down to the Hardware Security Module section.

4

Enable the Hardware Security Module configuration by selecting the toggle.

5

In Library, enter the full path to the libfxpkcs11.so file on your system. (for example, /usr/local/bin/fxpkcs11/libfxpkcs11.so)

6

In the Slot drop-down list, select slot-id.

7

If it's not selected, select the Include Compatibility Attributes checkbox.

8

Set the Slot ID to the slot configured in your fxpkcs11.cfg file (typically slot 0).

2 | Configure the key stored on the HSM in Curity for TLS

1

In the upper-right corner of the Curity Admin portal, select Facilities > Keys and Cryptography > TLS.

2

Hover over Server SSL Keys and select the plus symbol to configure a new Server SSL Key.

3

In the New SSL Server Certificate window, enter the name of the key. This name is the alias you provided in the Java keystore command. (In our example, CurityDemo).

4

Leave the Type set to asymmetric and select [ Use from HSM ].

5

In the second Type drop-down list, select RSA. Leave the Key Size set to 2048, and select [ OK ].

6

Select System at the top of the Curity Admin Portal UI, and select a Runtime Deployment.

7

In the General tab, set the TLS Server KeyStore to your key and select [ Close ].

8

Select the Changes drop-down option at the top of the Curity Admin Portal, and select Commit. Enter a comment as needed, and select [ OK ].

The server restarts and applies the changes.

3 | Verify key usage by using OpenSSL

To verify that the Curity Runtime Deployment is using the key for TLS connections, run the following command:

Shell


The following example shows a sample command:

Shell


The command response displays information on your certificate, which is stored on the HSM.

4 | Verify key usage by using a web browser

To verify the correct key usage, browse to the endpoint in a web browser, such as Firefox, as shown in the following example URL:

Text


If you use a self signed certificate, you receive a TLS warning. Bypass this warning by selecting Advanced > Accept the risk and continue.

In the URL bar at the top of the browser, select the lock icon to the left. In the opened window, select View Certificate to confirm that your certificate is presented during the connection to the Curity endpoint.