5 openssl-gendsa - generate a DSA private key from a set of parameters
25 [B<-writerand> I<file>]
30 =for openssl ifdef engine
34 This command generates a DSA private key from a DSA parameter file
35 (which will be typically generated by the L<openssl-dsaparam(1)> command).
43 Print out a usage message.
45 =item B<-out> I<filename>
47 Output the key to the specified file. If this argument is not specified then
48 standard output is used.
50 =item B<-aes128>, B<-aes192>, B<-aes256>, B<-aria128>, B<-aria192>, B<-aria256>, B<-camellia128>, B<-camellia192>, B<-camellia256>, B<-des>, B<-des3>, B<-idea>
52 These options encrypt the private key with specified
53 cipher before outputting it. A pass phrase is prompted for.
54 If none of these options is specified no encryption is used.
56 =item B<-rand> I<files>
58 The files containing random data used to seed the random number generator.
59 Multiple files can be specified separated by an OS-dependent character.
60 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
63 =item B<-writerand> I<file>
65 Writes random data to the specified I<file> upon exit.
66 This can be used with a subsequent B<-rand> flag.
68 =item B<-engine> I<id>
70 Specifying an engine (by its unique I<id> string) will cause this command
71 to attempt to obtain a functional reference to the specified engine,
72 thus initialising it if needed. The engine will then be set as the default
73 for all available algorithms.
77 Print extra details about the operations being performed.
81 The DSA parameter file to use. The parameters in this file determine
82 the size of the private key. DSA parameters can be generated and
83 examined using the L<openssl-dsaparam(1)> command.
89 DSA key generation is little more than random number generation so it is
90 much quicker that RSA key generation for example.
95 L<openssl-dsaparam(1)>,
102 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
104 Licensed under the Apache License 2.0 (the "License"). You may not use
105 this file except in compliance with the License. You can obtain a copy
106 in the file LICENSE in the source distribution or at
107 L<https://www.openssl.org/source/license.html>.