# openssl-ecparam(1ssl) - man - phpman

[OPENSSL-ECPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-ECPARAM/1SSL/markdown)                          OpenSSL                         [OPENSSL-ECPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-ECPARAM/1SSL/markdown)



## NAME
       openssl-ecparam - EC parameter manipulation and generation

## SYNOPSIS
       **openssl** **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
       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
### -help
           Print out a usage message.

### -inform
           The EC parameters input format; unspecified by default.  See [**openssl-format-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-format-options/1/markdown)
           for details.

### -outform
           The EC parameters output format; the default is **PEM**.  See [**openssl-format-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-format-options/1/markdown) for
           details.

           Parameters are encoded as **EcpkParameters** as specified in IETF RFC 3279.

### -in
           This specifies the input filename to read parameters from or standard input if this
           option is not specified.

### -out
           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
           This option inhibits the output of the encoded version of the parameters.

### -text
           This option prints out the EC parameters in human readable form.

### -check
           Validate the elliptic curve parameters.

### -check
           Validate the elliptic name curve parameters by checking if the curve parameters match any
           built-in curves.

### -name
           Use the EC parameters with the specified 'short' name. Use **-list**___**curves** to get a list of
           all currently implemented EC parameters.

### -list
           Print out a list of all currently implemented EC parameters names and exit.

### -conv
           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.  **Note**
           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
           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**.  **Note** the **implicitlyCA** alternative, as
           specified in RFC 3279, is currently not implemented in OpenSSL.

### -no
           This option inhibits that the 'seed' for the parameter generation is included in the
           ECParameters structure (see RFC 3279).

### -genkey
           This option will generate an EC private key using the specified parameters.

### -engine
           See "Engine Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown).  This option is deprecated.

### -rand -writerand
           See "Random State Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown) for details.

### -provider
### -provider-path
### -propquery
           See "Provider Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**provider**(7)](https://www.chedong.com/phpMan.php/man/provider/7/markdown), and [**property**(7)](https://www.chedong.com/phpMan.php/man/property/7/markdown).

       The [**openssl-genpkey**(1)](https://www.chedong.com/phpMan.php/man/openssl-genpkey/1/markdown) and [**openssl-pkeyparam**(1)](https://www.chedong.com/phpMan.php/man/openssl-pkeyparam/1/markdown) commands are capable of performing all the
       operations this command can, as well as supporting other public key types.

## EXAMPLES
       The documentation for the [**openssl-genpkey**(1)](https://www.chedong.com/phpMan.php/man/openssl-genpkey/1/markdown) and [**openssl-pkeyparam**(1)](https://www.chedong.com/phpMan.php/man/openssl-pkeyparam/1/markdown) commands contains
       examples equivalent to the ones listed here.

       To create EC parameters with the group 'prime192v1':

         openssl ecparam -out ec_param.pem -name prime192v1

       To create EC parameters with explicit parameters:

         openssl ecparam -out ec_param.pem -name prime192v1 -param_enc explicit

       To validate given EC parameters:

         openssl ecparam -in ec_param.pem -check

       To create EC parameters and a private key:

         openssl ecparam -out ec_key.pem -name prime192v1 -genkey

       To change the point encoding to 'compressed':

         openssl ecparam -in ec_in.pem -out ec_out.pem -conv_form compressed

       To print out the EC parameters to standard output:

         openssl ecparam -in ec_param.pem -noout -text

## SEE ALSO
       [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**openssl-pkeyparam**(1)](https://www.chedong.com/phpMan.php/man/openssl-pkeyparam/1/markdown), [**openssl-genpkey**(1)](https://www.chedong.com/phpMan.php/man/openssl-genpkey/1/markdown), [**openssl-ec**(1)](https://www.chedong.com/phpMan.php/man/openssl-ec/1/markdown), [**openssl-dsaparam**(1)](https://www.chedong.com/phpMan.php/man/openssl-dsaparam/1/markdown)

## HISTORY
       The **-engine** option was deprecated in OpenSSL 3.0.

       The **-C** option was removed in OpenSSL 3.0.

## 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>>.



3.0.2                                        2026-04-07                        [OPENSSL-ECPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-ECPARAM/1SSL/markdown)
