182 lines
5.2 KiB
HTML
182 lines
5.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of DSAPARAM</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>DSAPARAM</H1>
|
|
Section: OpenSSL (1SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
openssl-dsaparam, dsaparam - DSA parameter manipulation and generation
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<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>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This command is used to manipulate or generate <FONT SIZE="-1">DSA</FONT> parameter files.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-help</B><DD>
|
|
|
|
|
|
Print out a usage message.
|
|
<DT id="2"><B>-inform DER|PEM</B><DD>
|
|
|
|
|
|
This specifies the input format. The <B></B><FONT SIZE="-1"><B>DER</B></FONT><B></B> option uses an <FONT SIZE="-1">ASN1 DER</FONT> encoded
|
|
form compatible with <FONT SIZE="-1">RFC2459</FONT> (<FONT SIZE="-1">PKIX</FONT>) DSS-Parms that is a <FONT SIZE="-1">SEQUENCE</FONT> consisting
|
|
of p, q and g respectively. The <FONT SIZE="-1">PEM</FONT> form is the default format: it consists
|
|
of the <B></B><FONT SIZE="-1"><B>DER</B></FONT><B></B> format base64 encoded with additional header and footer lines.
|
|
<DT id="3"><B>-outform DER|PEM</B><DD>
|
|
|
|
|
|
This specifies the output format, the options have the same meaning and default
|
|
as the <B>-inform</B> option.
|
|
<DT id="4"><B>-in filename</B><DD>
|
|
|
|
|
|
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.
|
|
<DT id="5"><B>-out filename</B><DD>
|
|
|
|
|
|
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.
|
|
<DT id="6"><B>-noout</B><DD>
|
|
|
|
|
|
This option inhibits the output of the encoded version of the parameters.
|
|
<DT id="7"><B>-text</B><DD>
|
|
|
|
|
|
This option prints out the <FONT SIZE="-1">DSA</FONT> parameters in human readable form.
|
|
<DT id="8"><B>-C</B><DD>
|
|
|
|
|
|
This option converts the parameters into C code. The parameters can then
|
|
be loaded by calling the <B>get_dsaXXX()</B> function.
|
|
<DT id="9"><B>-genkey</B><DD>
|
|
|
|
|
|
This option will generate a <FONT SIZE="-1">DSA</FONT> either using the specified or generated
|
|
parameters.
|
|
<DT id="10"><B>-rand file...</B><DD>
|
|
|
|
|
|
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.
|
|
<DT id="11">[<B>-writerand file</B>]<DD>
|
|
|
|
|
|
Writes random data to the specified <I>file</I> upon exit.
|
|
This can be used with a subsequent <B>-rand</B> flag.
|
|
<DT id="12"><B>numbits</B><DD>
|
|
|
|
|
|
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.
|
|
<DT id="13"><B>-engine id</B><DD>
|
|
|
|
|
|
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.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
|
|
|
|
<FONT SIZE="-1">PEM</FONT> format <FONT SIZE="-1">DSA</FONT> parameters use the header and footer lines:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
-----BEGIN DSA PARAMETERS-----
|
|
-----END DSA PARAMETERS-----
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
<FONT SIZE="-1">DSA</FONT> parameter generation is a slow process and as a result the same set of
|
|
<FONT SIZE="-1">DSA</FONT> parameters is often used to generate several distinct keys.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+gendsa">gendsa</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+dsa">dsa</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+genrsa">genrsa</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+rsa">rsa</A></B>(1)
|
|
<A NAME="lbAH"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
|
|
<P>
|
|
|
|
Licensed under the OpenSSL license (the ``License''). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
|
|
<<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">NOTES</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|