corosync-qnetd-certutil.8 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .\"/*
  2. .\" * Copyright (C) 2016-2026 Red Hat, Inc.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Jan Friesse <jfriesse@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 Red Hat, 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-QNETD-CERTUTIL 8 2026-11-10
  35. .SH NAME
  36. corosync-qnetd-certutil - tool to generate qnetd TLS certificates
  37. .SH SYNOPSIS
  38. .B "corosync-qnetd-certutil [-I|-i|-s] [-C ca_nickname] [-c certificate] [-G] [-g keysize] [-k keytype] [-n cluster_name] [-q paramset] [-S serv_nickname]"
  39. .SH DESCRIPTION
  40. .B corosync-qnetd-certutil
  41. is a frontend for the NSS certutil, it is used for generating the QNetd CA (Certificate Authority),
  42. server certificate and signing cluster certificate used by
  43. .B corosync-qdevice
  44. when using the model 'net'.
  45. .SH OPTIONS
  46. .TP
  47. .B -I
  48. Generate and add another QNetd CA and a new server certificate. Both the CA
  49. and server nicknames must be unique.
  50. .TP
  51. .B -i
  52. Initialize the QNetd NSS certificate database and generate the QNetd CA and server certificates.
  53. The default directory for the database is /etc/corosync/qnetd. This directory must be
  54. writeable by the current user. The QNetd CA certificate is also exported into the file
  55. /etc/corosync/qnetd/nssdb/qnetd-cacert.crt (or
  56. /etc/corosync/qnetd/nssdb/qnetd-cacert-\fIca_nickname\fR.crt if
  57. .B -C
  58. is used).
  59. .TP
  60. .B -s
  61. Sign the cluster certificate. It is necessary to pass the cluster name (as
  62. configured in corosync.conf) and the certificate request file - see options below.
  63. The signed certificate will be written to the
  64. file /etc/corosync/qnetd/nssdb/cluster-\fIClusterName\fR.crt
  65. .TP
  66. .B -C
  67. NSS certificate database nickname of the new CA or the CA used to sign the
  68. certificate request. It also changes the name of the exported QNetd CA file
  69. and the Common Name (CN) of the certificate.
  70. If not specified, the default "QNet CA" is used.
  71. .TP
  72. .B -c
  73. Certificate request file to sign.
  74. .TP
  75. .B -G
  76. Do not set group write bit for new files. This option has effect only when used together with
  77. .B -i
  78. option. It is useful when extended security is needed and it's viable to prohibit daemon to change its
  79. configuration. Expected usage is to first set owner of the /etc/corosync/qnetd directory
  80. to root:$COROQNETD with permissions 0750 and then create database (as a root):
  81. .nf
  82. # corosync-qnetd-certutil -i -G
  83. .fi
  84. .TP
  85. .B -g
  86. Specify the key size to use when generating new public and private key pairs.
  87. This option is passed directly to the
  88. .B certutil
  89. command. By default, this is left empty, meaning
  90. .B -g
  91. is not passed to
  92. .B certutil
  93. at all.
  94. .TP
  95. .B -k
  96. Specify the key type to use when generating new public and private key pairs.
  97. This option is passed directly to the
  98. .B certutil
  99. command. By default, this is left empty, meaning
  100. .B -k
  101. is not passed to
  102. .B certutil
  103. at all.
  104. .TP
  105. .B -n
  106. Name of the cluster.
  107. .TP
  108. .B -q
  109. Specify the curve-name or ml-dsa-parameter-set to use when generating new public
  110. and private key pairs. This option is passed directly to the
  111. .B certutil
  112. command. By default, this is left empty, meaning
  113. .B -q
  114. is not passed to
  115. .B certutil
  116. at all.
  117. .TP
  118. .B -S
  119. NSS certificate database nickname of the new QNetd Server certificate. If not specified, the default "QNetd Cert" is used.
  120. .SH NOTES
  121. If qnetd is executed by a non root user, /etc/corosync/qnetd and its subdirectories must be owned by (or have group access for) the given user. If
  122. .B corosync-qnetd-certutil
  123. is executed as root it tries to copy the owner and group of /etc/corosync/qnetd to all of the created files.
  124. .SH SEE ALSO
  125. .BR corosync-qnetd (8)
  126. .BR corosync-qdevice (8)
  127. .BR certutil(1)
  128. .SH AUTHOR
  129. Jan Friesse
  130. .PP