$NetBSD: openssl-ecparam.1,v 1.1 2024/07/12 21:01:07 christos Exp $ -*- mode: troff; coding: utf-8 -*- Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) Standard preamble: ========================================================================..
..
..
\*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.. ds C` ""
. ds C' ""
'br\}
. ds C`
. ds C'
'br\}
Escape single quotes in literal strings from groff's Unicode transform. If the F register is >0, we'll generate index entries on stderr for titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index entries marked with X<> in POD. Of course, you'll have to process the output yourself in some meaningful fashion. Avoid warning from groff about undefined register 'F'...
.nr rF 0
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
======================================================================== Title "OPENSSL-ECPARAM 1" OPENSSL-ECPARAM 1 2024-07-11 3.0.14 OpenSSL
For nroff, turn off justification. Always turn off hyphenation; it makes way too many mistakes in technical documents. NAME
openssl-ecparam - EC parameter manipulation and generation
SYNOPSIS
Header "SYNOPSIS" \fBopenssl ecparam
[
-help]
[
-inform DER|
PEM]
[
-outform DER|
PEM]
[
-in filename]
[
-out filename]
[
-noout]
[
-text]
[
-check]
[
-check_named]
[
-name arg]
[
-list_curves]
[
-conv_form arg]
[
-param_enc arg]
[
-no_seed]
[
-genkey]
[
-engine id]
[
-rand files]
[
-writerand file]
[
-provider name]
[
-provider-path path]
[
-propquery propq]
DESCRIPTION
Header "DESCRIPTION" This command is used to manipulate or generate EC parameter files.
OpenSSL is currently not able to generate new groups and therefore
this command can only create EC parameters from known (named) curves.
OPTIONS
Header "OPTIONS" -help 4
Item "-help" Print out a usage message.
"-inform DER|PEM" 4
Item "-inform DER|PEM" The EC parameters input format; unspecified by default.
See
openssl-format-options\|(1) for details.
"-outform DER|PEM" 4
Item "-outform DER|PEM" The EC parameters output format; the default is
PEM.
See
openssl-format-options\|(1) for details.
.Sp
Parameters are encoded as
EcpkParameters as specified in IETF RFC 3279.
"-in filename" 4
Item "-in filename" This specifies the input filename to read parameters from or standard input if
this option is not specified.
"-out filename" 4
Item "-out filename" This specifies the output filename parameters to. Standard output is used
if this option is not present. The output filename should
not be the same
as the input filename.
-noout 4
Item "-noout" This option inhibits the output of the encoded version of the parameters.
-text 4
Item "-text" This option prints out the EC parameters in human readable form.
-check 4
Item "-check" Validate the elliptic curve parameters.
-check_named 4
Item "-check_named" Validate the elliptic name curve parameters by checking if the curve parameters
match any built-in curves.
"-name arg" 4
Item "-name arg" Use the EC parameters with the specified 'short' name. Use
-list_curves
to get a list of all currently implemented EC parameters.
-list_curves 4
Item "-list_curves" Print out a list of all currently implemented EC parameters names and exit.
"-conv_form arg" 4
Item "-conv_form arg" This specifies how the points on the elliptic curve are converted
into octet strings. Possible values are:
compressed,
uncompressed (the
default value) and
hybrid. For more information regarding
the point conversion forms please read the X9.62 standard.
\fBNote Due to patent issues the
compressed option is disabled
by default for binary curves and can be enabled by defining
the preprocessor macro
OPENSSL_EC_BIN_PT_COMP at compile time.
"-param_enc arg" 4
Item "-param_enc arg" This specifies how the elliptic curve parameters are encoded.
Possible value are:
named_curve, i.e. the ec parameters are
specified by an OID, or
explicit where the ec parameters are
explicitly given (see RFC 3279 for the definition of the
EC parameters structures). The default value is
named_curve.
\fBNote the
implicitlyCA alternative, as specified in RFC 3279,
is currently not implemented in OpenSSL.
-no_seed 4
Item "-no_seed" This option inhibits that the 'seed' for the parameter generation
is included in the ECParameters structure (see RFC 3279).
-genkey 4
Item "-genkey" This option will generate an EC private key using the specified parameters.
"-engine id" 4
Item "-engine id" See "Engine Options" in
openssl\|(1).
This option is deprecated.
"-rand files, -writerand file" 4
Item "-rand files, -writerand file" See "Random State Options" in
openssl\|(1) for details.
"-provider name" 4
Item "-provider name" 0
"-provider-path path" 4
Item "-provider-path path" "-propquery propq" 4
Item "-propquery propq"
See "Provider Options" in openssl\|(1), provider\|(7), and property\|(7).
The openssl-genpkey\|(1) and openssl-pkeyparam\|(1) commands are capable
of performing all the operations this command can, as well as supporting
other public key types.
EXAMPLES
Header "EXAMPLES" The documentation for the
openssl-genpkey\|(1) and
openssl-pkeyparam\|(1)
commands contains examples equivalent to the ones listed here.
To create EC parameters with the group 'prime192v1':
.Vb 1
openssl ecparam -out ec_param.pem -name prime192v1
.Ve
To create EC parameters with explicit parameters:
.Vb 1
openssl ecparam -out ec_param.pem -name prime192v1 -param_enc explicit
.Ve
To validate given EC parameters:
.Vb 1
openssl ecparam -in ec_param.pem -check
.Ve
To create EC parameters and a private key:
.Vb 1
openssl ecparam -out ec_key.pem -name prime192v1 -genkey
.Ve
To change the point encoding to 'compressed':
.Vb 1
openssl ecparam -in ec_in.pem -out ec_out.pem -conv_form compressed
.Ve
To print out the EC parameters to standard output:
.Vb 1
openssl ecparam -in ec_param.pem -noout -text
.Ve
"SEE ALSO"
Header "SEE ALSO" \fBopenssl\|(1),
\fBopenssl-pkeyparam\|(1),
\fBopenssl-genpkey\|(1),
\fBopenssl-ec\|(1),
\fBopenssl-dsaparam\|(1)
HISTORY
Header "HISTORY" The
-engine option was deprecated in OpenSSL 3.0.
The -C option was removed in OpenSSL 3.0.
COPYRIGHT
Header "COPYRIGHT" Copyright 2003-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
<https://www.openssl.org/source/license.html>.