Renew KES Keys
Typical procedure for renewing KES keys
Last updated
Typical procedure for renewing KES keys
Last updated
UPDATED: 12/12/24 to include conway CLI comands
On node run the following commands:
Write down this number you will need it when you run the steps on your Air Gapped Machine.
There are two different methods you can use, please review and select your preferred method.
When it's time to update your KES you can run the following command on your block producer to confirm you have the correct Operational Certificate Numbers
Results should look similar to the following:
If these number are NOT the same, as for the example above NodeState=4 and OnDisk=5 then you need to rollback your counter. In this case the node counter would need to be rolled back from 5 to 4
Also If you have never made a block then you will need to rollback your counter to 0
Write down this number you will need it when you run the steps on your Air Gapped Machine.
In this step we will create a new KES pair (kes.vkey and kes.skey)
For example, if your OpCertC value is 4 for your last block, then your node.counter should read "Next certificate issue number: 5" Likewise if you used CLI method if "qKesNodeStateOperationalCertificateNumber": 4, our node.counter should read "Next certificate issue number: 5"
Copy your new node.cert and kes.skey file to your block producer node
Now restart cardano node on your block producer with following command
Once you update your KES you can run the following command on your block producer to confirm you have the correct OpCertC
Results should look similar to the following:
The third line should match the next certificate issue number that we wanted. So, for our example it needed to be 5, ONE number higher than the OpCertC of 4. So it should look like: "qKesOnDiskOperationalCertificateNumber": 5,
If update successful:
Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them. Are you a pool? Consider buying them a coffee
To rollback your counter see our guide If, for example, NodeState and OnDisk =4, then you are all set and can proceed.
Navigate to your pool on . Once on your pool page click on the blocks tab and look at your last block. Look at the OpCertC column and make note of the number.
ON AIR GAPPED MACHINE: run the following commands:
STILL ON AIR GAPPED MACHINE:
navigate to where your node.counter file is. In this example it's located in our home directory in a folder called: cold-keys. So we run this command to output node.counter information.
Take note that "Next certificate issue number: x"
node.counter MUST be ONE greater than the most recently created block's OpCertC or "qKesNodeStateOperationalCertificateNumber" value. Depending which method you used in
If your "Next certificate issue number" is one higher you are all set and can continue to the
If it's not one higher you will need to adjust your node.counter see our guide If you just rolled back your node.counter then "description" will be blank. This is okay, it will correct itself after you run the .
STILL ON AIR GAPPED MACHINE: Create a new node.cert file with the following command.
Update <startKesPeriod> with the value from above from
Then run this command by replacing "<startKesPeriod>" with correct number from Example: --kes-period 503 \
Note path to node.cert and adjust if needed. Path in example is based off guide for setting up a stake pool.