Skip to content

Generating Key in KRA

Endi S. Dewata edited this page Jun 14, 2023 · 3 revisions

Generating Symmetric Key

To generate a symmetric key on the server:

$ pki -n caadmin kra-key-generate testkey --key-algorithm AES --key-size 256 --usages sign
---------------------------
Key generation request info
---------------------------
  Request ID: 0x747851fefc27a631fe368bed67b352f9
  Key ID: 0x00c1b3306b0db95f33005308f904a803e3
  Type: symkeyGenRequest
  Status: complete
  Creation Time: Wed Jun 14 18:24:18 CDT 2023
  Modification Time: Wed Jun 14 18:24:18 CDT 2023

Generating Asymmetric Key

To generate an asymmetric key on the server:

$ pki -n caadmin kra-key-generate testkey --key-algorithm RSA --key-size 2048
---------------------------
Key generation request info
---------------------------
  Request ID: 0xdc0942cc848cd74f88fdbf116324270
  Key ID: 0x0afde8d28fde097a4a04e38a18417151
  Type: asymkeyGenRequest
  Status: complete
  Creation Time: Wed Jun 14 18:22:41 CDT 2023
  Modification Time: Wed Jun 14 18:22:41 CDT 2023
Clone this wiki locally