table of contents
- bookworm-backports 4.27.0-1~bpo12+1
OPENSSL-DHPARAM(1SSL) | OpenSSL | OPENSSL-DHPARAM(1SSL) |
NOM¶
openssl-dhparam - Manipulation et génération de paramètres DH
SYNOPSIS¶
openssl dhparam [-help] [-inform DER|PEM] [-outform DER|PEM] [-in filename] [-out filename] [-dsaparam] [-check] [-noout] [-text] [-2] [-3] [-5] [-engine id] [-rand files] [-writerand file] [-provider name] [-provider-path path] [-propquery propq] [numbits]
DESCRIPTION¶
This command is used to manipulate DH parameter files.
See "EXAMPLES" in openssl-genpkey(1) for examples on how to generate a key using a named safe prime group without generating intermediate parameters.
OPTIONS¶
- -help
- Afficher un message d'utilisation.
- -inform DER|PEM, -outform DER|PEM
- The input format and output format; the default is PEM. The object is compatible with the PKCS#3 DHparameter structure. See openssl-format-options(1) for details.
- -in nom_fichier
- Indiquer le nom du fichier d'où seront lus les paramètres. Par défaut, l'entrée standard est utilisée.
- -out nom_fichier
- Indiquer le nom du fichier de sortie pour les paramètres. La sortie standard est utilisée si cette option n'est pas présente. Le fichier ne doit pas être identique au fichier d'entrée.
- -dsaparam
- If this option is used, DSA rather than DH parameters are read or created;
they are converted to DH format. Otherwise, "strong" primes
(such that (p-1)/2 is also prime) will be used for DH parameter
generation.
DH parameter generation with the -dsaparam option is much faster, and the recommended exponent length is shorter, which makes DH key exchange more efficient. 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.
- -check
- Performs numerous checks to see if the supplied parameters are valid and displays a warning if not.
- -2, -3, -5
- The generator to use, either 2, 3 or 5. If present then the input file is ignored and parameters are generated instead. If not present but numbits is present, parameters are generated with the default generator 2.
- nombrebits
- This option specifies that a parameter set should be generated of size numbits. It must be the last option. If this option is present then the input file is ignored and parameters are generated instead. If this option is not present but a generator (-2, -3 or -5) is present, parameters are generated with a default length of 2048 bits. The minimum length is 512 bits. The maximum length is 10000 bits.
- -noout
- Cette option empêche la sortie des paramètres en version encodée.
- -text
- This option prints out the DH parameters in human readable form.
- -engine id
- See "Engine Options" in openssl(1). This option is deprecated.
- -rand files, -writerand file
- See "Random State Options" in openssl(1) for details.
- -provider nom
- -provider-path chemin
- -propquery propq
- See "Provider Options" in openssl(1), provider(7), and property(7).
NOTES¶
This command replaces the dh and gendh commands of previous releases.
VOIR AUSSI¶
openssl(1), openssl-pkeyparam(1), openssl-dsaparam(1), openssl-genpkey(1).
HISTORIQUE¶
The -engine option was deprecated in OpenSSL 3.0.
The -C option was removed in OpenSSL 3.0.
COPYRIGHT¶
Copyright 2000-2023 Les auteurs du projet OpenSSL. Tous droits réservés.
Sous licence Apache 2.0 (la "Licence"). Vous ne pouvez utiliser ce fichier que conformément avec la Licence. Vous trouverez une copie dans le fichier LICENSE de la distribution du source ou à l'adresse <https://www.openssl.org/source/license.html>.
TRADUCTION¶
La traduction française de cette page de manuel a été créée par arne, Nicolas François <nicolas.francois@centraliens.net> et David Prévot <david@tilapin.org>
Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.
Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à debian-l10n-french@lists.debian.org.
15 avril 2025 | 3.0.16 |