Error KES rotation

To run the following code on the AIR-GAPPED MACHINE to rotate the Pool keys:

cd $NODE_HOME
cardano-cli node issue-op-cert \
–kes-verification-key-file kes.vkey \
–cold-signing-key-file $HOME/cold-keys/node.skey \
–operational-certificate-issue-counter $HOME/cold-keys/node.counter \
–kes-period 935 \
–out-file node.cert

I receive the following error:

Issue a nodo operational certificate
–kes-verification-key-file: command not found
–cold-signing-key-file: command not found
–operational-certificate-issue-counter: command not found
–kes-period: command not found
–out-file: command not found

I think the '–" you have should be ‘–’, i.e. two dashes, not a long single dash.

e.g.

chmod u+rwx $HOME/cold-keys
cardano-cli node issue-op-cert \
    --kes-verification-key-file kes.vkey \
    --cold-signing-key-file $HOME/cold-keys/node.skey \
    --operational-certificate-issue-counter $HOME/cold-keys/node.counter \
    --kes-period 935 \
    --out-file node.cert

The code I’m running is this, but I’m still getting the same error:

chmod u+rwx $HOME/cold-keys
cardano-cli node issue-op-cert \
- -kes-verification-key-file kes.vkey \
- -cold-signing-key-file $HOME/cold-keys/node.skey \
- -operational-certificate-issue-counter $HOME/cold-keys/node.counter \
- -kes-period 935 \
- -out-file node.cert

Is your cardano-cli behaving right? Does cardano-cli version report right?

I think that’s the forum markup changing it, because on the place where you wanted two dashes, it also shows –…

1 Like

Are you sure there’s a '' at the end of each line but the last in the command? Because it looks like it is interpreting all the lines as separate commands. You can also try to put everything on one line (with a space before each double dash of course), omit the \ then.

1 Like

Ah, haha, thanks forum.

Just in case, it could be the forum markup, but the two dashes don’t have a space between them.

It seems there might be an error in the transcription on the forum. I’m running the command with two dashes (–) and a backslash () at the end of each line. I also tried running the command in a single line: ardano-cli node issue-op-cert kes-verification-key-file kes.vkey cold-signing-key-file $HOME/cold-keys/node.skey operational-certificate-issue-counter $HOME/cold-keys/node.counter kes-period 935 out-file node.cert However, the error persists. The version of `cardano-cli is 8.7.0.0 (ghc-8.10) and cardano-node is 8.7.2 (ghc-8.10).

Have you used the cardano-cli on the airgapped machine before? Or is this the first time you’re doing these commans?

The issue has been resolved. I’ve executed the following code, and although it looks almost exactly the same as before, it has worked.

cd $NODE_HOME
cardano-cli node issue-op-cert
–kes-verification-key-file kes.vkey
–cold-signing-key-file $HOME/cold-keys/node.skey
–operational-certificate-issue-counter $HOME/cold-keys/node.counter
–kes-period 938
–out-file node.cert

1 Like