OPENSSL-ECPARAM(1ossl)
πΈ openssl-ecparam(1ossl) β bestie edition πΈ
okay so this is the openssl-ecparam page from the OpenSSL manual (manual name 1ossl, the OpenSSL one, hi π) β EC parameter manipulation and generation, and yes we're gonna get into it.
β¨ NAME β¨
openssl-ecparam β EC parameter manipulation and generation. that's it, that's the whole vibe. π
π 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] [-provparam [name:]key=value] [-propquery propq]
look at all those flags. she's got range. π
π¦ DESCRIPTION π¦
so this command is the one you call when you need to manipulate or generate EC parameter files. main character energy, honestly.
here's the tea though, and it's important: OpenSSL is currently not able to generate new groups, which means this command can only create EC parameters from known (named) curves. so like, it's not out here inventing brand new curves from scratch β no cap, it can't. it works from the named ones that already exist. π«Ά
π OPTIONS π
-helpβ prints out a usage message. the classic "what do I even do here" button. β¨-inform DER|PEMβ the EC parameters input format. unspecified by default (so, like, no assumption made π). seeopenssl-format-options(1)for the details.-outform DER|PEMβ the EC parameters output format, and the default isPEM. seeopenssl-format-options(1)for details.
parameters are encoded as EcpkParameters as specified in IETF RFC 3279. love a standards-compliant moment.
-in filenameβ specifies the input file to read parameters from, or standard input if you don't pass this option. default behavior stays lowkey.-out filenameβ specifies the output filename for parameters. standard output is used if this option isn't present. and yes, the output filename can be the same as the input filename β which leads to replacing the file contents. β οΈ but note that file I/O is not atomic: the output file gets truncated and then written. so if something goes wrong in between, that file is just... gone. be so fr when picking filenames, bestie. π-nooutβ inhibits the output of the encoded version of the parameters. she's shy, she's not showing the encoded bytes today. π-textβ prints out the EC parameters in human readable form. bless. πΈ-checkβ validate the elliptic curve parameters. doing a vibe check on the curve. β-check_namedβ validate the elliptic name curve parameters by checking if the curve parameters match any built-in curves. like, does this curve already live here or not π§-name argβ use the EC parameters with the specified 'short' name. pro tip: use-list_curvesto get a list of all currently implemented EC parameters. iykyk.-list_curvesβ prints out a list of all currently implemented EC parameters names and exits. window shopping for curves, iconic. π-conv_form argβ specifies how the points on the elliptic curve are converted into octet strings. possible values:compressed,uncompressed(the default value) andhybrid. for more info on point conversion forms, go read the X9.62 standard. Note: due to patent issues thecompressedoption is disabled by default for binary curves and can be enabled by defining the preprocessor macroOPENSSL_EC_BIN_PT_COMPat compile time. yeah. patents. whole thing. π-param_enc argβ specifies how the elliptic curve parameters are encoded. possible values are:named_curve, i.e. the ec parameters are specified by an OID, orexplicitwhere the ec parameters are explicitly given (see RFC 3279 for the definition of the EC parameters structures). the default value isnamed_curve. Note: theimplicitlyCAalternative, as specified in RFC 3279, is currently not implemented in OpenSSL. not us, not today. π-no_seedβ inhibits the 'seed' for the parameter generation from being included in theECParametersstructure (see RFC 3279). no seed, no problem. π±-genkeyβ will generate an EC private key using the specified parameters. a little treat. a little key. π₯-engine idβ see "Engine Options" inopenssl(1). β οΈ this option is deprecated.-rand files,-writerand fileβ see "Random State Options" inopenssl(1)for details. chaos, but documented chaos. π²-provider name-provider-path path-provparam [name:]key=value-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7).
ngl, there's something you should know: 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. so like... she's the versatile one. πβ¨
π EXAMPLES π
the documentation for the openssl-genpkey(1) and openssl-pkeyparam(1) commands contains examples equivalent to the ones listed here, fyi.
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), openssl-pkeyparam(1), openssl-genpkey(1), openssl-ec(1), openssl-dsaparam(1)
π§ HISTORY π§
- the
-engineoption was deprecated in OpenSSL 3.0. - the
-Coption was removed in OpenSSL 3.0. rest in peace to a real one π―οΈ
π 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>.
okay that's the whole page, and shoutout to the footer details so you know exactly where this came from: this was 3.5.9, dated 2026-09-29, page OPENSSL-ECPARAM(1ossl) β mwah, slay, periodt. π«Άπ
β¨
π¦ where this page comes from
- alpine 3.23: openssl-doc 3.5.9-r0 Β· Apache-2.0
- alpine 3.24: openssl-doc 3.5.9-r0 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms