Visible to Intel only — GUID: dhc1627495482497
Ixiasoft
Visible to Intel only — GUID: dhc1627495482497
Ixiasoft
2.1.2. Creating Authentication Key Pairs in SoftHSM
The quartus_sign tool depends on the PKCS #11 API library from your HSM.
- /usr/local/lib/softhsm2.so on Linux
- C:\SoftHSM2\lib\softhsm2.dll on 32-bit version of Windows
- C:\SoftHSM2\lib\softhsm2-x64.dll on 64-bit version of Windows.
softhsm2-util --init-token --label agilex-token --pin agilex-token-pin \
--so-pin agilex-so-pin --free
The option parameters, particularly the token label and token pin are examples used throughout this chapter. Intel recommends that you follow instructions from your HSM vendor to create and manage tokens and keys.
You create authentication key pairs using the pkcs11-tool utility to interact with the token in SoftHSM. Instead of explicitly referring to the private and public key .pem files in the file system examples, you refer to the key pair by its label and the tool selects the appropriate key automatically.
pkcs11-tool --module=/usr/local/lib/softhsm/libsofthsm2.so \
--token-label agilex-token --login --pin agilex-token-pin --keypairgen \
--mechanism ECDSA-KEY-PAIR-GEN --key-type EC:secp384r1 --usage-sign \
--label root0 --id 0
pkcs11-tool --module=/usr/local/lib/softhsm/libsofthsm2.so \
--token-label agilex-token --login --pin agilex-token-pin --keypairgen \
--mechanism ECDSA-KEY-PAIR-GEN --key-type EC:secp384r1 --usage-sign \
--label design0_sign --id 1
Did you find the information on this page useful?
Feedback Message
Characters remaining: