dsaparam.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>dsaparam</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <link rev="made" href="mailto:root@localhost" />
  8. </head>
  9. <body>
  10. <ul id="index">
  11. <li><a href="#NAME">NAME</a></li>
  12. <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  13. <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  14. <li><a href="#OPTIONS">OPTIONS</a></li>
  15. <li><a href="#NOTES">NOTES</a></li>
  16. <li><a href="#SEE-ALSO">SEE ALSO</a></li>
  17. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  18. </ul>
  19. <h1 id="NAME">NAME</h1>
  20. <p>openssl-dsaparam, dsaparam - DSA parameter manipulation and generation</p>
  21. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  22. <p><b>openssl dsaparam</b> [<b>-help</b>] [<b>-inform DER|PEM</b>] [<b>-outform DER|PEM</b>] [<b>-in filename</b>] [<b>-out filename</b>] [<b>-noout</b>] [<b>-text</b>] [<b>-C</b>] [<b>-rand file...</b>] [<b>-writerand file</b>] [<b>-genkey</b>] [<b>-engine id</b>] [<b>numbits</b>]</p>
  23. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  24. <p>This command is used to manipulate or generate DSA parameter files.</p>
  25. <h1 id="OPTIONS">OPTIONS</h1>
  26. <dl>
  27. <dt id="help"><b>-help</b></dt>
  28. <dd>
  29. <p>Print out a usage message.</p>
  30. </dd>
  31. <dt id="inform-DER-PEM"><b>-inform DER|PEM</b></dt>
  32. <dd>
  33. <p>This specifies the input format. The <b>DER</b> option uses an ASN1 DER encoded form compatible with RFC2459 (PKIX) DSS-Parms that is a SEQUENCE consisting of p, q and g respectively. The PEM form is the default format: it consists of the <b>DER</b> format base64 encoded with additional header and footer lines.</p>
  34. </dd>
  35. <dt id="outform-DER-PEM"><b>-outform DER|PEM</b></dt>
  36. <dd>
  37. <p>This specifies the output format, the options have the same meaning and default as the <b>-inform</b> option.</p>
  38. </dd>
  39. <dt id="in-filename"><b>-in filename</b></dt>
  40. <dd>
  41. <p>This specifies the input filename to read parameters from or standard input if this option is not specified. If the <b>numbits</b> parameter is included then this option will be ignored.</p>
  42. </dd>
  43. <dt id="out-filename"><b>-out filename</b></dt>
  44. <dd>
  45. <p>This specifies the output filename parameters to. Standard output is used if this option is not present. The output filename should <b>not</b> be the same as the input filename.</p>
  46. </dd>
  47. <dt id="noout"><b>-noout</b></dt>
  48. <dd>
  49. <p>This option inhibits the output of the encoded version of the parameters.</p>
  50. </dd>
  51. <dt id="text"><b>-text</b></dt>
  52. <dd>
  53. <p>This option prints out the DSA parameters in human readable form.</p>
  54. </dd>
  55. <dt id="C"><b>-C</b></dt>
  56. <dd>
  57. <p>This option converts the parameters into C code. The parameters can then be loaded by calling the get_dsaXXX() function.</p>
  58. </dd>
  59. <dt id="genkey"><b>-genkey</b></dt>
  60. <dd>
  61. <p>This option will generate a DSA either using the specified or generated parameters.</p>
  62. </dd>
  63. <dt id="rand-file"><b>-rand file...</b></dt>
  64. <dd>
  65. <p>A file or files containing random data used to seed the random number generator. Multiple files can be specified separated by an OS-dependent character. The separator is <b>;</b> for MS-Windows, <b>,</b> for OpenVMS, and <b>:</b> for all others.</p>
  66. </dd>
  67. <dt id="writerand-file">[<b>-writerand file</b>]</dt>
  68. <dd>
  69. <p>Writes random data to the specified <i>file</i> upon exit. This can be used with a subsequent <b>-rand</b> flag.</p>
  70. </dd>
  71. <dt id="numbits"><b>numbits</b></dt>
  72. <dd>
  73. <p>This option specifies that a parameter set should be generated of size <b>numbits</b>. It must be the last option. If this option is included then the input file (if any) is ignored.</p>
  74. </dd>
  75. <dt id="engine-id"><b>-engine id</b></dt>
  76. <dd>
  77. <p>Specifying an engine (by its unique <b>id</b> string) will cause <b>dsaparam</b> to attempt to obtain a functional reference to the specified engine, thus initialising it if needed. The engine will then be set as the default for all available algorithms.</p>
  78. </dd>
  79. </dl>
  80. <h1 id="NOTES">NOTES</h1>
  81. <p>PEM format DSA parameters use the header and footer lines:</p>
  82. <pre><code> -----BEGIN DSA PARAMETERS-----
  83. -----END DSA PARAMETERS-----</code></pre>
  84. <p>DSA parameter generation is a slow process and as a result the same set of DSA parameters is often used to generate several distinct keys.</p>
  85. <h1 id="SEE-ALSO">SEE ALSO</h1>
  86. <p><a href="../man1/gendsa.html">gendsa(1)</a>, <a href="../man1/dsa.html">dsa(1)</a>, <a href="../man1/genrsa.html">genrsa(1)</a>, <a href="../man1/rsa.html">rsa(1)</a></p>
  87. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  88. <p>Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.</p>
  89. <p>Licensed under the OpenSSL license (the &quot;License&quot;). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
  90. </body>
  91. </html>