openssl-dsaparam.1ossl 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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-DSAPARAM 1ossl"
  58. .TH OPENSSL-DSAPARAM 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\-dsaparam \- DSA parameter manipulation and generation
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl dsaparam\fR
  68. [\fB\-help\fR]
  69. [\fB\-inform\fR \fBDER\fR|\fBPEM\fR]
  70. [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
  71. [\fB\-in\fR \fIfilename\fR]
  72. [\fB\-out\fR \fIfilename\fR]
  73. [\fB\-noout\fR]
  74. [\fB\-text\fR]
  75. [\fB\-genkey\fR]
  76. [\fB\-verbose\fR]
  77. [\fB\-quiet\fR]
  78. [\fB\-rand\fR \fIfiles\fR]
  79. [\fB\-writerand\fR \fIfile\fR]
  80. [\fB\-engine\fR \fIid\fR]
  81. [\fB\-provider\fR \fIname\fR]
  82. [\fB\-provider\-path\fR \fIpath\fR]
  83. [\fB\-propquery\fR \fIpropq\fR]
  84. [\fInumbits\fR]
  85. [\fInumqbits\fR]
  86. .SH DESCRIPTION
  87. .IX Header "DESCRIPTION"
  88. This command is used to manipulate or generate DSA parameter files.
  89. .PP
  90. DSA parameter generation can be a slow process and as a result the same set of
  91. DSA parameters is often used to generate several distinct keys.
  92. .SH OPTIONS
  93. .IX Header "OPTIONS"
  94. .IP \fB\-help\fR 4
  95. .IX Item "-help"
  96. Print out a usage message.
  97. .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR" 4
  98. .IX Item "-inform DER|PEM"
  99. The DSA parameters input format; unspecified by default.
  100. See \fBopenssl\-format\-options\fR\|(1) for details.
  101. .IP "\fB\-outform\fR \fBDER\fR|\fBPEM\fR" 4
  102. .IX Item "-outform DER|PEM"
  103. The DSA parameters output format; the default is \fBPEM\fR.
  104. See \fBopenssl\-format\-options\fR\|(1) for details.
  105. .Sp
  106. Parameters are a sequence of \fBASN.1 INTEGER\fRs: \fBp\fR, \fBq\fR, and \fBg\fR.
  107. This is compatible with RFC 2459 \fBDSS-Parms\fR structure.
  108. .IP "\fB\-in\fR \fIfilename\fR" 4
  109. .IX Item "-in filename"
  110. This specifies the input filename to read parameters from or standard input if
  111. this option is not specified. If the \fInumbits\fR parameter is included then
  112. this option will be ignored.
  113. .IP "\fB\-out\fR \fIfilename\fR" 4
  114. .IX Item "-out filename"
  115. This specifies the output filename parameters to. Standard output is used
  116. if this option is not present. The output filename should \fBnot\fR be the same
  117. as the input filename.
  118. .IP \fB\-noout\fR 4
  119. .IX Item "-noout"
  120. This option inhibits the output of the encoded version of the parameters.
  121. .IP \fB\-text\fR 4
  122. .IX Item "-text"
  123. This option prints out the DSA parameters in human readable form.
  124. .IP \fB\-genkey\fR 4
  125. .IX Item "-genkey"
  126. This option will generate a DSA either using the specified or generated
  127. parameters.
  128. .IP \fB\-verbose\fR 4
  129. .IX Item "-verbose"
  130. Print extra details about the operations being performed.
  131. .IP \fB\-quiet\fR 4
  132. .IX Item "-quiet"
  133. Print fewer details about the operations being performed, which may
  134. be handy during batch scripts and pipelines.
  135. .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
  136. .IX Item "-rand files, -writerand file"
  137. See "Random State Options" in \fBopenssl\fR\|(1) for details.
  138. .IP "\fB\-engine\fR \fIid\fR" 4
  139. .IX Item "-engine id"
  140. See "Engine Options" in \fBopenssl\fR\|(1).
  141. This option is deprecated.
  142. .IP \fInumbits\fR 4
  143. .IX Item "numbits"
  144. This optional argument specifies that a parameter set should be generated of
  145. size \fInumbits\fR. If this argument is included then the input file (if any) is
  146. ignored.
  147. .IP \fInumqbits\fR 4
  148. .IX Item "numqbits"
  149. This optional argument specifies that a parameter set should be generated with
  150. a subprime parameter q of size \fInumqbits\fR. It must be the last argument. If
  151. this argument is included then the input file (if any) is ignored.
  152. .IP "\fB\-provider\fR \fIname\fR" 4
  153. .IX Item "-provider name"
  154. .PD 0
  155. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  156. .IX Item "-provider-path path"
  157. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  158. .IX Item "-propquery propq"
  159. .PD
  160. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  161. .SH "SEE ALSO"
  162. .IX Header "SEE ALSO"
  163. \&\fBopenssl\fR\|(1),
  164. \&\fBopenssl\-pkeyparam\fR\|(1),
  165. \&\fBopenssl\-gendsa\fR\|(1),
  166. \&\fBopenssl\-dsa\fR\|(1),
  167. \&\fBopenssl\-genrsa\fR\|(1),
  168. \&\fBopenssl\-rsa\fR\|(1)
  169. .SH HISTORY
  170. .IX Header "HISTORY"
  171. The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
  172. .PP
  173. The \fB\-C\fR option was removed in OpenSSL 3.0.
  174. .SH COPYRIGHT
  175. .IX Header "COPYRIGHT"
  176. Copyright 2000\-2023 The OpenSSL Project Authors. All Rights Reserved.
  177. .PP
  178. Licensed under the Apache License 2.0 (the "License"). You may not use
  179. this file except in compliance with the License. You can obtain a copy
  180. in the file LICENSE in the source distribution or at
  181. <https://www.openssl.org/source/license.html>.