2000-01-08 21:36:17 +08:00
|
|
|
=pod
|
2019-10-31 11:35:08 +08:00
|
|
|
{- OpenSSL::safe::output_do_not_edit_headers(); -}
|
2019-10-13 05:45:56 +08:00
|
|
|
|
2000-01-08 21:36:17 +08:00
|
|
|
=head1 NAME
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
openssl-dhparam - DH parameter manipulation and generation
|
2000-01-08 21:36:17 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2000-03-04 06:18:19 +08:00
|
|
|
B<openssl dhparam>
|
2016-02-06 00:58:45 +08:00
|
|
|
[B<-help>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-inform> B<DER>|B<PEM>]
|
|
|
|
[B<-outform> B<DER>|B<PEM>]
|
2000-03-04 06:18:19 +08:00
|
|
|
[B<-in> I<filename>]
|
|
|
|
[B<-out> I<filename>]
|
|
|
|
[B<-dsaparam>]
|
2014-07-03 10:42:40 +08:00
|
|
|
[B<-check>]
|
2000-01-08 21:36:17 +08:00
|
|
|
[B<-noout>]
|
|
|
|
[B<-text>]
|
2021-12-22 11:44:07 +08:00
|
|
|
[B<-verbose>]
|
|
|
|
[B<-quiet>]
|
2000-01-22 21:58:29 +08:00
|
|
|
[B<-2>]
|
2019-07-10 21:52:36 +08:00
|
|
|
[B<-3>]
|
2000-01-22 21:58:29 +08:00
|
|
|
[B<-5>]
|
2020-09-21 17:56:01 +08:00
|
|
|
{- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -}
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_synopsis -}
|
2000-03-04 06:18:19 +08:00
|
|
|
[I<numbits>]
|
2000-01-08 21:36:17 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
This command is used to manipulate DH parameter files.
|
|
|
|
|
2021-04-27 05:27:32 +08:00
|
|
|
See L<openssl-genpkey(1)/EXAMPLES> for examples on how to generate
|
|
|
|
a key using a named safe prime group without generating intermediate
|
|
|
|
parameters.
|
|
|
|
|
2000-01-08 21:36:17 +08:00
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2016-02-06 00:58:45 +08:00
|
|
|
=item B<-help>
|
|
|
|
|
|
|
|
Print out a usage message.
|
|
|
|
|
2019-10-10 09:48:33 +08:00
|
|
|
=item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
|
2000-01-08 21:36:17 +08:00
|
|
|
|
2019-10-10 09:48:33 +08:00
|
|
|
The input format and output format; the default is B<PEM>.
|
|
|
|
The object is compatible with the PKCS#3 B<DHparameter> structure.
|
2020-12-10 04:56:51 +08:00
|
|
|
See L<openssl-format-options(1)> for details.
|
2000-01-08 21:36:17 +08:00
|
|
|
|
2000-03-04 06:18:19 +08:00
|
|
|
=item B<-in> I<filename>
|
2000-01-08 21:36:17 +08:00
|
|
|
|
|
|
|
This specifies the input filename to read parameters from or standard input if
|
|
|
|
this option is not specified.
|
|
|
|
|
2000-03-04 06:18:19 +08:00
|
|
|
=item B<-out> I<filename>
|
2000-01-08 21:36:17 +08:00
|
|
|
|
|
|
|
This specifies the output filename parameters to. Standard output is used
|
|
|
|
if this option is not present. The output filename should B<not> be the same
|
|
|
|
as the input filename.
|
|
|
|
|
2000-03-04 06:18:19 +08:00
|
|
|
=item B<-dsaparam>
|
|
|
|
|
|
|
|
If this option is used, DSA rather than DH parameters are read or created;
|
2022-07-12 18:32:44 +08:00
|
|
|
they are converted to DH format. Otherwise, safe primes (such
|
2000-03-04 06:18:19 +08:00
|
|
|
that (p-1)/2 is also prime) will be used for DH parameter generation.
|
|
|
|
|
2022-07-12 18:32:44 +08:00
|
|
|
DH parameter generation with the B<-dsaparam> option is much faster.
|
|
|
|
Beware that with such DSA-style DH parameters, a fresh DH key should be
|
|
|
|
created for each use to avoid small-subgroup attacks that may be possible
|
|
|
|
otherwise.
|
2000-03-04 06:18:19 +08:00
|
|
|
|
2014-07-03 10:42:40 +08:00
|
|
|
=item B<-check>
|
|
|
|
|
2016-05-27 20:26:03 +08:00
|
|
|
Performs numerous checks to see if the supplied parameters are valid and
|
|
|
|
displays a warning if not.
|
2014-07-03 10:42:40 +08:00
|
|
|
|
2019-07-10 21:52:36 +08:00
|
|
|
=item B<-2>, B<-3>, B<-5>
|
2000-01-22 21:58:29 +08:00
|
|
|
|
2019-07-10 21:52:36 +08:00
|
|
|
The generator to use, either 2, 3 or 5. If present then the
|
2015-05-13 18:05:41 +08:00
|
|
|
input file is ignored and parameters are generated instead. If not
|
2019-10-02 00:16:29 +08:00
|
|
|
present but I<numbits> is present, parameters are generated with the
|
2015-05-13 18:05:41 +08:00
|
|
|
default generator 2.
|
2000-01-22 21:58:29 +08:00
|
|
|
|
2000-03-04 06:18:19 +08:00
|
|
|
=item I<numbits>
|
2000-01-22 21:58:29 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
This option specifies that a parameter set should be generated of size
|
2015-05-13 18:05:41 +08:00
|
|
|
I<numbits>. It must be the last option. If this option is present then
|
|
|
|
the input file is ignored and parameters are generated instead. If
|
2019-07-23 04:50:19 +08:00
|
|
|
this option is not present but a generator (B<-2>, B<-3> or B<-5>) is
|
2015-05-13 18:05:41 +08:00
|
|
|
present, parameters are generated with a default length of 2048 bits.
|
2023-07-16 14:25:55 +08:00
|
|
|
The minimum length is 512 bits. The maximum length is 10000 bits.
|
2000-01-22 21:58:29 +08:00
|
|
|
|
2000-01-08 21:36:17 +08:00
|
|
|
=item B<-noout>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
This option inhibits the output of the encoded version of the parameters.
|
2000-01-08 21:36:17 +08:00
|
|
|
|
|
|
|
=item B<-text>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
This option prints out the DH parameters in human readable form.
|
2000-01-08 21:36:17 +08:00
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_engine_item -}
|
2003-01-31 06:02:27 +08:00
|
|
|
|
2019-10-13 05:45:56 +08:00
|
|
|
{- $OpenSSL::safe::opt_r_item -}
|
|
|
|
|
2020-02-25 12:29:30 +08:00
|
|
|
{- $OpenSSL::safe::opt_provider_item -}
|
|
|
|
|
2021-12-22 11:44:07 +08:00
|
|
|
=item B<-verbose>
|
|
|
|
|
|
|
|
This option enables the output of progress messages, which is handy when
|
|
|
|
running commands interactively that may take a long time to execute.
|
|
|
|
|
|
|
|
=item B<-quiet>
|
|
|
|
|
|
|
|
This option suppresses the output of progress messages, which may be
|
|
|
|
undesirable in batch scripts or pipelines.
|
|
|
|
|
2000-01-08 21:36:17 +08:00
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
2019-10-25 04:40:11 +08:00
|
|
|
This command replaces the B<dh> and B<gendh> commands of previous
|
|
|
|
releases.
|
|
|
|
|
2000-01-08 21:36:17 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
L<openssl(1)>,
|
2020-02-07 06:09:53 +08:00
|
|
|
L<openssl-pkeyparam(1)>,
|
2021-04-27 05:27:32 +08:00
|
|
|
L<openssl-dsaparam(1)>,
|
|
|
|
L<openssl-genpkey(1)>.
|
2000-01-08 21:36:17 +08:00
|
|
|
|
2020-02-07 06:09:53 +08:00
|
|
|
=head1 HISTORY
|
|
|
|
|
2020-11-23 20:01:34 +08:00
|
|
|
The B<-engine> option was deprecated in OpenSSL 3.0.
|
2020-02-07 06:09:53 +08:00
|
|
|
|
2020-11-12 07:03:38 +08:00
|
|
|
The B<-C> option was removed in OpenSSL 3.0.
|
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2023-09-07 16:59:15 +08:00
|
|
|
Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:11 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|