- Create an HSM connector and generate an HSM Protected encryption key.
- Enable CyberArk Advanced Key Protect.
- Set up HSM private key generation.
- Configure code signing.
Create a connector and key
Perform the following steps to create an HSM connector and generate an HSM Protected encryption key:In the Create new HSM (Cryptoki) Connector window, enter any name for the HSM connector in the Name field.
For Cryptoki DLL Path, select [ Browse ] and locate the following path to the Futurex PKCS #11 DLL file:
None
Select the slot number configured in your Futurex PKCS #11 configuration file (the default is slot
0). This is where TPP accesses the encryption keys.For User Type, leave the default option selected, Crypto Officer (User). CyberArk TPF uses the identity configured in the Futurex PKCS #11 file to connect to the KMES Series 3.
Select [ Verify ].
If the connection to the KMES Series 3 is successful, a new Permitted Keys section populates in the window.
In the Create New HSM Key window, enter a key Name and select the Type for the key.Select Allow Key Storage checkbox if you plan to use CyberArk CodeSign Protect to store private code-signing keys in the KMES Series 3.Select [ Create ].
If key creation is successful, the key is now viewable in the keys menu on the KMES Series 3. The name of the key displays in the list of Permitted Key in the Create New HSM Key window.
Enable CyberArk Advanced Key Protect
CyberArk Advanced Key Protect is required for HSM Private Key Generation. In addition, CyberArk Code Signing Certificate Private Key Storage requires you to enable this feature. To enable CyberArk Advanced Key Protect, perform the following steps:Review the information in the Enable CyberArk Advanced Key Protect window, and select [ Enable ] to proceed.
Restart the IIS service. Select the Product node, select Website, and then select [ Restart ] in the Actions panel.
Restart the CyberArk TPF Platform service. Select the Product node, select CyberArk TPF Platform, then select [ Restart ] in the Actions panel.
Set up HSM private key generation
CyberArk TPF uses the KMES Series 3 for private key generation for SSH keys and certificates. CyberArk TPF uses Certificate Authority (CA) template objects to manage the certificate lifecycle. Creating one is a prerequisite to HSM Key Generation. See CyberArk TPF documentation for more information. Perform the following tasks to configure HSM private key generation settings:- Configure the CyberArk TPF platform policy.
- Generate the certificate.
Configure the policy
Perform the following steps to configure the CyberArk TPF platform policy to enable the KMES Series 3 for HSM key generation:Under Other Information, select the name of the HSM Connector you created for the KMES Series 3 in the Key Generation drop-down menu.
Under Other Information, select the name of the HSM-Protected Encryption Key you created on the KMES Series 3.
Generate the certificate
Perform the following steps to generate the certificate:On the left side of the page, select [ Add ] under the Policy drop-down list and select Certificates > Certificate.
Under General Information, enter the required information, and for Management Type, select Provisioning or Enrollment.
Under CSR Handling, leave Service Generated CSR selected for CSR Generation and leave Generate Key/CSR on Application set to No.
Configure code signing
CyberArk CodeSign Protect can store private code signing keys in the KMES Series 3. This section describes the basic steps to configure this functionality for the integration. See CyberArk TPF documentation for more details. To take advantage of the CodeSign Project, you must create a CA template object, which CyberArk TPF uses to manage the certificate lifecycle. See CyberArk TPF documentation for more information.To use an HSM for key storage, you must first complete the steps in the Set up HSM private key generation section.
Assign permissions
Perform the following steps to assign permissions to a code signing administrator:Create a code signing flow
Perform the following steps to create a code signing flow:Create a template
Perform the following steps to create an environment template for the code signing project:On the Settings tab of the Properties window, enter a Description and select a Certificate Container and Signing Flow.
Create a new project
Perform the following steps to create a new code signing project:Create an environment
Perform the following steps to create an environment for the project with a new HSM private key and certificate:In the newly created code signing project, go to the Environments tab and select Add Environment > Certificate & Key.
For Creation Type, select Create New.
The Key Storage Location should now list the Futurex HSM Connector.

