Creating a new version of a key
To create a version of a key
Call the I_C_SetKeyParameters API and and pass I_T_KeyVersion and I_T_ KeyParameter_Version_Increment.
Here,
- I_T_KeyVersion is the - I_T_KeyParameterTypeEnum.
- I_T_KeyParameter_Version_Increment is the - I_T_KeyParameterValueEnum.
Example
        rc = I_C_SetKeyParameter(sess, my_versioned_key, I_T_KeyVersion, I_T_KeyParameter_Version_Increment)
Note
You cannot have more active versions than indicated in the Number of Active Versions Allowed for a Key field on the Key and Policy Configuration page on the Management Console. Similarly, a key cannot have more than 4000 versions regardless of their state.