genECCKeyPair

Updated at:

Generates an ECC (Elliptic Curve Cryptography) key pair on a Hardware Security Module (HSM).

Prerequisites

Before running this command:

  • Start key_mgmt_tool.

  • Log on to the HSM with a CU identity.

Syntax

genECCKeyPair -i <EC curve id>
              -l <label>
              [-id <key ID>]
              [-min_srv <minimum number of servers>]
              [-m_value <0..8>]
              [-nex]
              [-sess]
              [-timeout <number of seconds>]
              [-u <user-ids>]
              [-attest]
Important

Enter parameters in the order shown in the syntax.

Example

The following example generates a key pair using the NID_secp384r1 curve (curve ID 14) with the label ecc. The output shows the public key handle as 12 and the private key handle as 13.

Command:   genECCKeyPair -i 14 -l ecc

           Cfm3GenerateKeyPair returned: 0x00 : HSM Return: SUCCESS

           Cfm3GenerateKeyPair:    public key handle: 12    private key handle: 13

           Cluster Status:
           Node id 0 status: 0x00000000 : HSM Return: SUCCESS

Parameters

ParameterDescriptionRequiredValid values
-iThe curve ID.Yes

  • 1: NID_X9_62_prime192v1

  • 2: NID_X9_62_prime256v1

  • 3: NID_sect163k1

  • 4: NID_sect163r2

  • 5: NID_sect233k1

  • 6: NID_sect233r1

  • 7: NID_sect283k1

  • 8: NID_sect283r1

  • 9: NID_sect409k1

  • 10: NID_sect409r1

  • 11: NID_sect571k1

  • 12: NID_sect571r1

  • 13: NID_secp224r1

  • 14: NID_secp384r1

  • 15: NID_secp521r1

  • 16: NID_secp256k

-lThe key label.YesNo specific requirements
-idThe ID to assign to the generated key.OptionalNo specific requirements
-sessMarks the key as a session key.OptionalNo specific requirements
-nexSets the key as non-exportable.OptionalNo specific requirements
-uThe IDs of users authorized to share the key, separated by commas.OptionalNo specific requirements
-m_valueThe maximum number of users that can use the private key.Optional0 to 8
-attestRuns firmware response integrity verification.OptionalNo specific requirements
-min_srvThe minimum number of servers the key must synchronize to within the time set by -timeout. If synchronization does not reach this threshold within the allotted time, the key is not created.OptionalNo specific requirements
-timeoutThe time, in seconds, allowed for key synchronization to the number of servers specified by -min_srv. Only effective when used with -min_srv. Default: no timeout (waits indefinitely).OptionalNo specific requirements