- Issue a code-signing certificate from a CA that you create on the Excrypt HSM.
- Import an existing code-signing certificate and its private key from a PKCS #12 file.
Issue a code-signing certificate
This section uses FXCLI to create a CA on the Excrypt HSM, generate the code-signing key pair on the HSM, and issue the code-signing certificate from the CA. Run FXCLI on the workstation that you use to configure the HSM. FXCLI writes each output file to the path in--out. The examples use C:\Futurex\signtool, so create that directory first.
1
Open the FXCLI prompt by running
fxcli-hsm, and connect to the HSM. To connect over the network, run connect tcp against the admin port (9009). For the TLS settings that FXCLI needs, see the FXCLI HSM technical reference on the Futurex Portal.2
Log in with both default Admin identities. Run the following command twice, once for each identity, and enter the username and password when prompted:
FXCLI
3
Generate the CA key pair in the next available key slot:
FXCLI
4
Create a self-signed CA certificate from the key pair:
FXCLI
5
Generate the code-signing key pair:The output includes
FXCLI
slot: followed by the key slot number. Note it for the next step.6
Set the PKCS #11 label of the key to the key’s name.
certutil uses the label to find the key later. Replace [slot] with the slot number from the previous step:FXCLI
7
Generate a CSR for the code-signing key pair:
FXCLI
8
Issue the code-signing certificate from the CA:
FXCLI
Copy
CodeSigning.pem and SigntoolCa.pem to the computer where you run Microsoft SignTool.Import an existing certificate
This section uses FXCLI to import an existing code-signing certificate and its private key from a PKCS #12 file onto the Excrypt HSM.The PKCS #12 file must contain only the code-signing certificate and its private key. Don’t include CA certificates in the file.
1
Open the FXCLI prompt, connect to the HSM, and log in with both default Admin identities, as in the previous procedure.
2
Import the private key from the PKCS #12 file. Replace
[p12_password] with the file’s password:FXCLI

