Stake key registration

The new stake key (of the hardware wallet) must be registered on the blockchain and delegated to the stake pool.
This can also be done by connecting the hardware wallet to a wallet like Eternl, Yoroi, Adalite.io etc. and delegating from there. To do it in the command line, follow the instructions below.
Save the following script as hw-stake-registration.sh in the pool-scripts folder and execute it to generate the certificate:
#!/bin/bash
​
​
source ./env
​
cardano-cli stake-address registration-certificate \
--stake-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
--out-file ${NODE_HOME}/pool-certificates/hw-stake-registration.cert