KES Renewal
Renewing cardano node operational certificate.
Before undertaking these steps the block producing node must be fully synchronised. Otherwise, latest KES period cannot be calculated. Please check block explorer such as https://pooltool.io/ for latest epoch and slot number.
Determine the number of slots per KES period from the genesis file:
1
slotsPerKESPeriod=$(cat $NODE_HOME/${NODE_CONFIG}-shelley-genesis.json | jq -r '.slotsPerKESPeriod')
2
echo slotsPerKESPeriod: ${slotsPerKESPeriod}
Copied!
Find the Slot number:
1
slotNo=$(cardano-cli shelley query tip --mainnet | jq -r '.slotNo')
2
echo slotNo: ${slotNo}
Copied!
Find the kesPeriod by dividing the slot tip number by the slotsPerKESPeriod:
1
kesPeriod=$((${slotNo} / ${slotsPerKESPeriod}))
2
echo kesPeriod: ${kesPeriod}
3
startKesPeriod=${kesPeriod}
4
echo startKesPeriod: ${startKesPeriod}
Copied!
Ensure you have kes.vkey, node.skey and node.counter in place before creating the node operational certificate:
1
cardano-cli shelley node issue-op-cert \
2
--kes-verification-key-file $HOME/bp-cold-keys/kes.vkey \
3
--cold-signing-key-file $HOME/bp-cold-keys/node.skey \
4
--operational-certificate-issue-counter $HOME/bp-cold-keys/node.counter \
5
--kes-period <startKesPeriod> \
6
--out-file node.cert
Copied!
With new node.cert, restart your block producer node.
Last modified 1yr ago
Copy link