corosync-keygen.8 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .\"/*
  2. .\" * Copyright (C) 2010 Red Hat, Inc.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Angus Salkeld <asalkeld@redhat.com>
  7. .\" *
  8. .\" * This software licensed under BSD license, the text of which follows:
  9. .\" *
  10. .\" * Redistribution and use in source and binary forms, with or without
  11. .\" * modification, are permitted provided that the following conditions are met:
  12. .\" *
  13. .\" * - Redistributions of source code must retain the above copyright notice,
  14. .\" * this list of conditions and the following disclaimer.
  15. .\" * - Redistributions in binary form must reproduce the above copyright notice,
  16. .\" * this list of conditions and the following disclaimer in the documentation
  17. .\" * and/or other materials provided with the distribution.
  18. .\" * - Neither the name of the MontaVista Software, Inc. nor the names of its
  19. .\" * contributors may be used to endorse or promote products derived from this
  20. .\" * software without specific prior written permission.
  21. .\" *
  22. .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. .\" * THE POSSIBILITY OF SUCH DAMAGE.
  33. .\" */
  34. .TH COROSYNC-KEYGEN 8 2010-05-30
  35. .SH NAME
  36. corosync-keygen \- Generate an authentication key for Corosync.
  37. .SH SYNOPSIS
  38. .B "corosync-keygen [\-k <filename>] [\-l]"
  39. .SH DESCRIPTION
  40. If you want to configure corosync to use cryptographic techniques to ensure authenticity
  41. and privacy of the messages, you will need to generate a private key.
  42. .PP
  43. .B corosync-keygen
  44. creates this key and writes it to /etc/corosync/authkey or to file specified by
  45. -k option.
  46. .PP
  47. This private key must be copied to every processor in the cluster. If the
  48. private key isn't the same for every node, those nodes with nonmatching private
  49. keys will not be able to join the same configuration.
  50. .PP
  51. Copy the key to some security transportable storage or use ssh to transmit the
  52. key from node to node. Then install the key with the command:
  53. .PP
  54. unix#: install -D --group=0 --owner=0 --mode=0400 /path_to_authkey/authkey /etc/corosync/authkey
  55. .PP
  56. If a message "Invalid digest" appears from the corosync executive, the keys
  57. are not consistent between processors.
  58. .PP
  59. .B Note: corosync-keygen
  60. will ask for user input to assist in generating entropy unless the -l option is used.
  61. .SH OPTIONS
  62. .TP
  63. .B -k <filename>
  64. This specifies the fully qualified path to the shared key to create.
  65. .br
  66. The default is /etc/corosync/authkey.
  67. .TP
  68. .B -l
  69. Use a less secure random data source that will not require user input to help generate
  70. entropy. This may be useful when this utility is used from a script or hardware random number
  71. generator is not available (f.e. in virtual machine).
  72. .SH EXAMPLES
  73. .TP
  74. Generate the key.
  75. .PP
  76. # corosync-keygen
  77. .br
  78. Corosync Cluster Engine Authentication key generator.
  79. .br
  80. Gathering 1024 bits for key from /dev/random.
  81. .br
  82. Press keys on your keyboard to generate entropy.
  83. .br
  84. .PP
  85. $ corosync-keygen -l -k /tmp/authkey
  86. .br
  87. Corosync Cluster Engine Authentication key generator.
  88. .br
  89. Writing corosync key to /tmp/authkey.
  90. .br
  91. .SH SEE ALSO
  92. .BR corosync_overview (8),
  93. .BR corosync.conf (5),
  94. .SH AUTHOR
  95. Angus Salkeld
  96. .PP