2
0

openssl-dhparam.pod.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-dhparam - DH parameter manipulation and generation
  5. =head1 SYNOPSIS
  6. B<openssl dhparam>
  7. [B<-help>]
  8. [B<-inform> B<DER>|B<PEM>]
  9. [B<-outform> B<DER>|B<PEM>]
  10. [B<-in> I<filename>]
  11. [B<-out> I<filename>]
  12. [B<-dsaparam>]
  13. [B<-check>]
  14. [B<-noout>]
  15. [B<-text>]
  16. [B<-verbose>]
  17. [B<-quiet>]
  18. [B<-2>]
  19. [B<-3>]
  20. [B<-5>]
  21. {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -}
  22. {- $OpenSSL::safe::opt_provider_synopsis -}
  23. [I<numbits>]
  24. =head1 DESCRIPTION
  25. This command is used to manipulate DH parameter files.
  26. See L<openssl-genpkey(1)/EXAMPLES> for examples on how to generate
  27. a key using a named safe prime group without generating intermediate
  28. parameters.
  29. =head1 OPTIONS
  30. =over 4
  31. =item B<-help>
  32. Print out a usage message.
  33. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  34. The input format and output format; the default is B<PEM>.
  35. The object is compatible with the PKCS#3 B<DHparameter> structure.
  36. See L<openssl-format-options(1)> for details.
  37. =item B<-in> I<filename>
  38. This specifies the input filename to read parameters from or standard input if
  39. this option is not specified.
  40. =item B<-out> I<filename>
  41. This specifies the output filename parameters to. Standard output is used
  42. if this option is not present. The output filename should B<not> be the same
  43. as the input filename.
  44. =item B<-dsaparam>
  45. If this option is used, DSA rather than DH parameters are read or created;
  46. they are converted to DH format. Otherwise, safe primes (such
  47. that (p-1)/2 is also prime) will be used for DH parameter generation.
  48. DH parameter generation with the B<-dsaparam> option is much faster.
  49. Beware that with such DSA-style DH parameters, a fresh DH key should be
  50. created for each use to avoid small-subgroup attacks that may be possible
  51. otherwise.
  52. =item B<-check>
  53. Performs numerous checks to see if the supplied parameters are valid and
  54. displays a warning if not.
  55. =item B<-2>, B<-3>, B<-5>
  56. The generator to use, either 2, 3 or 5. If present then the
  57. input file is ignored and parameters are generated instead. If not
  58. present but I<numbits> is present, parameters are generated with the
  59. default generator 2.
  60. =item I<numbits>
  61. This option specifies that a parameter set should be generated of size
  62. I<numbits>. It must be the last option. If this option is present then
  63. the input file is ignored and parameters are generated instead. If
  64. this option is not present but a generator (B<-2>, B<-3> or B<-5>) is
  65. present, parameters are generated with a default length of 2048 bits.
  66. The minimim length is 512 bits. The maximum length is 10000 bits.
  67. =item B<-noout>
  68. This option inhibits the output of the encoded version of the parameters.
  69. =item B<-text>
  70. This option prints out the DH parameters in human readable form.
  71. {- $OpenSSL::safe::opt_engine_item -}
  72. {- $OpenSSL::safe::opt_r_item -}
  73. {- $OpenSSL::safe::opt_provider_item -}
  74. =item B<-verbose>
  75. This option enables the output of progress messages, which is handy when
  76. running commands interactively that may take a long time to execute.
  77. =item B<-quiet>
  78. This option suppresses the output of progress messages, which may be
  79. undesirable in batch scripts or pipelines.
  80. =back
  81. =head1 NOTES
  82. This command replaces the B<dh> and B<gendh> commands of previous
  83. releases.
  84. =head1 SEE ALSO
  85. L<openssl(1)>,
  86. L<openssl-pkeyparam(1)>,
  87. L<openssl-dsaparam(1)>,
  88. L<openssl-genpkey(1)>.
  89. =head1 HISTORY
  90. The B<-engine> option was deprecated in OpenSSL 3.0.
  91. The B<-C> option was removed in OpenSSL 3.0.
  92. =head1 COPYRIGHT
  93. Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
  94. Licensed under the Apache License 2.0 (the "License"). You may not use
  95. this file except in compliance with the License. You can obtain a copy
  96. in the file LICENSE in the source distribution or at
  97. L<https://www.openssl.org/source/license.html>.
  98. =cut