Generating HSM Key using CLI

1. Use the following command to generate an AES key:

›_ Console

> p11tool2 Slot=<slot_ID> LoginUser=ask 

KeyAttr=CKA_LABEL=<key_label>,CKA_ID=<key_ID>,CKA_EXTRACTABLE=CK_TRUE 
GenerateKey=AES 

tmpqia6yhrv.jpg

Generating key using p11tool2