openssl-gendsa.1ossl 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "OPENSSL-GENDSA 1ossl"
  58. .TH OPENSSL-GENDSA 1ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. openssl\-gendsa \- generate a DSA private key from a set of parameters
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl\fR \fBgendsa\fR
  68. [\fB\-help\fR]
  69. [\fB\-out\fR \fIfilename\fR]
  70. [\fB\-passout\fR \fIarg\fR]
  71. [\fB\-aes128\fR]
  72. [\fB\-aes192\fR]
  73. [\fB\-aes256\fR]
  74. [\fB\-aria128\fR]
  75. [\fB\-aria192\fR]
  76. [\fB\-aria256\fR]
  77. [\fB\-camellia128\fR]
  78. [\fB\-camellia192\fR]
  79. [\fB\-camellia256\fR]
  80. [\fB\-des\fR]
  81. [\fB\-des3\fR]
  82. [\fB\-idea\fR]
  83. [\fB\-verbose\fR]
  84. [\fB\-quiet\fR]
  85. [\fB\-rand\fR \fIfiles\fR]
  86. [\fB\-writerand\fR \fIfile\fR]
  87. [\fB\-engine\fR \fIid\fR]
  88. [\fB\-provider\fR \fIname\fR]
  89. [\fB\-provider\-path\fR \fIpath\fR]
  90. [\fB\-propquery\fR \fIpropq\fR]
  91. [\fIparamfile\fR]
  92. .SH DESCRIPTION
  93. .IX Header "DESCRIPTION"
  94. This command generates a DSA private key from a DSA parameter file
  95. (which will be typically generated by the \fBopenssl\-dsaparam\fR\|(1) command).
  96. .SH OPTIONS
  97. .IX Header "OPTIONS"
  98. .IP \fB\-help\fR 4
  99. .IX Item "-help"
  100. Print out a usage message.
  101. .IP "\fB\-out\fR \fIfilename\fR" 4
  102. .IX Item "-out filename"
  103. Output the key to the specified file. If this argument is not specified then
  104. standard output is used.
  105. .IP "\fB\-passout\fR \fIarg\fR" 4
  106. .IX Item "-passout arg"
  107. The passphrase used for the output file.
  108. See \fBopenssl\-passphrase\-options\fR\|(1).
  109. .IP "\fB\-aes128\fR, \fB\-aes192\fR, \fB\-aes256\fR, \fB\-aria128\fR, \fB\-aria192\fR, \fB\-aria256\fR, \fB\-camellia128\fR, \fB\-camellia192\fR, \fB\-camellia256\fR, \fB\-des\fR, \fB\-des3\fR, \fB\-idea\fR" 4
  110. .IX Item "-aes128, -aes192, -aes256, -aria128, -aria192, -aria256, -camellia128, -camellia192, -camellia256, -des, -des3, -idea"
  111. These options encrypt the private key with specified
  112. cipher before outputting it. A pass phrase is prompted for.
  113. If none of these options is specified no encryption is used.
  114. .Sp
  115. Note that all options must be given before the \fIparamfile\fR argument.
  116. .IP \fB\-verbose\fR 4
  117. .IX Item "-verbose"
  118. Print extra details about the operations being performed.
  119. .IP \fB\-quiet\fR 4
  120. .IX Item "-quiet"
  121. Print fewer details about the operations being performed, which may
  122. be handy during batch scripts and pipelines.
  123. .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
  124. .IX Item "-rand files, -writerand file"
  125. See "Random State Options" in \fBopenssl\fR\|(1) for details.
  126. .IP "\fB\-engine\fR \fIid\fR" 4
  127. .IX Item "-engine id"
  128. See "Engine Options" in \fBopenssl\fR\|(1).
  129. This option is deprecated.
  130. .IP \fIparamfile\fR 4
  131. .IX Item "paramfile"
  132. The DSA parameter file to use. The parameters in this file determine
  133. the size of the private key. DSA parameters can be generated and
  134. examined using the \fBopenssl\-dsaparam\fR\|(1) command.
  135. .IP "\fB\-provider\fR \fIname\fR" 4
  136. .IX Item "-provider name"
  137. .PD 0
  138. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  139. .IX Item "-provider-path path"
  140. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  141. .IX Item "-propquery propq"
  142. .PD
  143. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  144. .SH NOTES
  145. .IX Header "NOTES"
  146. DSA key generation is little more than random number generation so it is
  147. much quicker that RSA key generation for example.
  148. .SH "SEE ALSO"
  149. .IX Header "SEE ALSO"
  150. \&\fBopenssl\fR\|(1),
  151. \&\fBopenssl\-genpkey\fR\|(1),
  152. \&\fBopenssl\-dsaparam\fR\|(1),
  153. \&\fBopenssl\-dsa\fR\|(1),
  154. \&\fBopenssl\-genrsa\fR\|(1),
  155. \&\fBopenssl\-rsa\fR\|(1)
  156. .SH HISTORY
  157. .IX Header "HISTORY"
  158. The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
  159. .SH COPYRIGHT
  160. .IX Header "COPYRIGHT"
  161. Copyright 2000\-2023 The OpenSSL Project Authors. All Rights Reserved.
  162. .PP
  163. Licensed under the Apache License 2.0 (the "License"). You may not use
  164. this file except in compliance with the License. You can obtain a copy
  165. in the file LICENSE in the source distribution or at
  166. <https://www.openssl.org/source/license.html>.