Launching the block producer
Configure and launch the block producer as a systemd service.
With keys and certificates generated, transfer them to your BP server and start the node.
1) Transfer keys to the BP server
Copy these files to /home/cardano/cnode/keys/ on your block producer:
myPool.kes-000.skey
myPool.kes.skey
myPool.vrf.skey
myPool.vrf.skey
myPool.node-000.opcert
myPool.node.opcert
Rename and secure the files:
cd ~/cnode/keys
mv myPool.kes-000.skey myPool.kes.skey
mv myPool.node-000.opcert myPool.node.opcert
chmod 400 *2) Create the systemd service
Create the service file:
cat <<EOF | sudo tee /etc/systemd/system/cardano-node.service
[Unit]
Description=Cardano Block Producer
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=cardano
Group=cardano
WorkingDirectory=/home/cardano/cnode
ExecStart=/home/cardano/.local/bin/cardano-node run \\
--config /home/cardano/cnode/config/config.json \\
--topology /home/cardano/cnode/config/topology.json \\
--database-path /home/cardano/cnode/db \\
--socket-path /home/cardano/cnode/sockets/node.socket \\
--host-addr 0.0.0.0 \\
--port 3001 \\
--shelley-kes-key /home/cardano/cnode/keys/myPool.kes.skey \\
--shelley-vrf-key /home/cardano/cnode/keys/myPool.vrf.skey \\
--shelley-operational-certificate /home/cardano/cnode/keys/myPool.node.opcert
KillSignal=SIGINT
RestartKillSignal=SIGINT
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cardano-bp
LimitNOFILE=1048576
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOFEnable and start:
If updating an existing service, reload and restart:
Check the logs:

Create the launch script:
Make it executable and run inside tmux:
Detach from tmux: Ctrl+B then D. Reattach later with tmux attach -t cardano.
KES key rotation
Check your current KES status:
To rotate, generate new KES keys and operational certificate on your offline machine:
Transfer the new myPool.kes.skey and myPool.node.opcert to your BP server and restart the node.
Set a calendar reminder to rotate KES keys every 80 days to stay ahead of expiration.
Last updated