COROSYNC-KEYGEN(8)
π COROSYNC-KEYGEN π
okay bestie, welcome to the corosync-keygen page from the System Manager's Manual section 8 β yes it's a sysadmin man page but it's also kinda iconic so let's go π«Ά
β¨ NAME β¨
corosync-keygen β generate an authentication key for Corosync. that's it. that's the job. π
πΈ SYNOPSIS πΈ
corosync-keygen [-k <filename>] [-m <randomfile>] [-s size] [-l] [-h]
π¦ DESCRIPTION π¦
so here's the tea π β if you want to set up corosync using cryptographic techniques to make sure your messages are authentic and private (yes, the whole "nobody's reading my cluster mail" vibe), you're gonna need to generate a private key. no key, no privacy. periodt.
corosync-keygen is the girl that makes that key and drops it at /etc/corosync/authkey, or wherever you tell it with the -k option. β¨
IMPORTANT BESTIE: this private key has to be copied to every processor in the cluster. every. single. one. if the private key isn't the same for every node, the nodes with nonmatching private keys will not be able to join the same configuration. it's giving group project where one person has a different doc π
so copy the key to some security transportable storage, or just use ssh to send it node to node. then install it with this command:
unix#: install -D --group=0 --owner=0 --mode=0400 /path_to_authkey/authkey /etc/corosync/authkey
and if you ever see a message saying Invalid digest coming from the corosync executive? that means the keys are not consistent between processors. vibe check failed. go fix your keys. π
π OPTIONS π
-k<filename>β this one specifies the fully qualified path</> to the shared key you wanna create. the default is/etc/corosync/authkey. she's the main character option fr fr π-rβ random number source file. default is/dev/urandom. for example,/dev/randommay be used when you really superb randomness is needed. fancy. β¨-ssizeβ size of the generated key in bytes. default is256bytes. the allowed range is<128, 4096>. don't get greedy now. π-lβ this option is not used and it's kept only for compatibility. she's just there. standing. existing. we respect her anyway. π-hβ print basic usage. the classic "help me please" button. π«Ά
π EXAMPLES π
generate the key β the basic slay:
# corosync-keygen
Corosync Cluster Engine Authentication key generator.
Gathering 2048 bits for key from /dev/urandom.
Writing corosync key to /etc/corosync/authkey
generate a longer key and store it in the /tmp/authkey file β she's bigger, she's bolder, she's living in /tmp:
$ corosync-keygen -s 2048 -k /tmp/authkey
Corosync Cluster Engine Authentication key generator.
Gathering 16384 bits for key from /dev/urandom.
Writing corosync key to /tmp/authkey.
generate a superb key using /dev/random β this one makes you work for it, keyboard-mashing era π:
# corosync-keygen -r /dev/random
Gathering 2048 bits for key from /dev/random.
Press keys on your keyboard to generate entropy.
Press keys on your keyboard to generate entropy (1128 bits still needed).
Press keys on your keyboard to generate entropy (504 bits still needed).
Press keys on your keyboard to generate entropy (128 bits still needed).
Press keys on your keyboard to generate entropy (32 bits still needed).
Writing corosync key to /etc/corosync/authkey.
π SEE ALSO π
go read those next bestie, iykyk π
π AUTHOR π
Angus Salkeld β thank you for your service king π«‘β¨
and that's a wrap on the COROSYNC-KEYGEN(8) page from the System Manager's Manual, dated 2019-04-09. she's a little vintage, she's still serving π bye bestie, go generate some keys πΈπ¦
π¦ where this page comes from
- debian bookworm: corosync 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: corosync 3.1.9-2+deb13u1 Β· BSD-3-Clause
- epel 9: corosync 3.1.10-0.2.el9.1 Β· BSD-3-Clause
- fedora 43: corosync 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosync 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 44: corosync 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosync 3.1.10-6.fc44 Β· BSD-3-Clause
- nixos 26.05: corosync 3.1.9
- nixpkgs unstable: corosync 3.1.9
- opensuse-leap 16.0: corosync 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync 3.1.9-160000.4.1 Β· BSD-3-Clause
- ubuntu jammy: corosync 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: corosync 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: corosync 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: corosync 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: corosync 3.1.9-2ubuntu1
- ubuntu questing: corosync 3.1.9-2ubuntu1.1
- ubuntu resolute: corosync 3.1.9-2ubuntu3 Β· BSD-3-Clause
- Copyright (C) 2010-2019 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms