corosync-keygen.8 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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"
  39. .SH DESCRIPTION
  40. If you want to configure corosync to use cryptographic techniques to ensure authenticity
  41. .br
  42. and privacy of the messages, you will need to generate a private key.
  43. .PP
  44. .B corosync-keygen
  45. creates this key and writes it to /etc/corosync/authkey.
  46. .PP
  47. This private key must be copied to every processor in the cluster. If the
  48. .br
  49. private key isn't the same for every node, those nodes with nonmatching private
  50. .br
  51. keys will not be able to join the same configuration.
  52. .PP
  53. Copy the key to some security transportable storage or use ssh to transmit the
  54. .br
  55. key from node to node. Then install the key with the command:
  56. .PP
  57. unix#: install -D --group=0 --owner=0 --mode=0400 /path_to_authkey/authkey /etc/corosync/authkey
  58. .PP
  59. If a message "Invalid digest" appears from the corosync executive, the keys
  60. .br
  61. are not consistent between processors.
  62. .PP
  63. .B Note: corosync-keygen
  64. will ask for user input to assist in generating entropy.
  65. .SH EXAMPLES
  66. .TP
  67. Generate the key.
  68. .PP
  69. $ corosync-keygen
  70. .br
  71. Corosync Cluster Engine Authentication key generator.
  72. .br
  73. Gathering 1024 bits for key from /dev/random.
  74. .br
  75. Press keys on your keyboard to generate entropy.
  76. .br
  77. .SH SEE ALSO
  78. .BR corosync_overview (8),
  79. .BR corosync.conf (5),
  80. .SH AUTHOR
  81. Angus Salkeld
  82. .PP