Generating KSK and ZSK with RSA Algorithm

  1. Run the following commands to generate a zone-signing key and a key-signing key using RSA algorithm:

›_ Console

# p11tool2 slot=0 LoginUser=ask PubKeyAttr=CKA_LABEL=”ksk” PrvKeyAttr=CKA_LABEL=”ksk” GenerateKeyPair=RSA 

 

# p11tool2 slot=0 LoginUser=ask PubKeyAttr=CKA_LABEL=”zsk” 

PrvKeyAttr=CKA_LABEL=”zsk” GenerateKeyPair=RSA 
tmp9uap7i2j.jpg

Key generation output for KSK

tmpwame8g0o.jpg

Key generation output for ZSK

Each key should have unique label that will be used to refer the private key in next steps.

  1. List the keys using p11tool2 command.

›_ Console

# p11tool2 slot=0 LoginUser=ask ListObjects 
tmpxt7q8n_e.jpg

List key output

tmp3a6ibfj6.jpg

List key output