OPENSSL-ECPARAM(1ossl)
π NAME π
ok so openssl-ecparam β it's the OpenSSL manual page for EC parameter manipulation and generation, bestie. that's the whole vibe. elliptic curve params, we manipulate em, we generate em. slay.
β¨ 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]
like, that's a LOT of flags but we're gonna get through them together, i promise π«Ά
π¦ DESCRIPTION π¦
okay so this command does exactly what it says on the tin: it manipulates or generates EC parameter files. that's it. that's the whole job.
but here's the tea β β OpenSSL is currently not able to generate new groups, so this command can only create EC parameters from known (named) curves. no inventing new curves from scratch, bestie. not today. not in this version. it's giving "we work with what we have" energy.
π OPTIONS π
-helpβ prints out a usage message. the classic "what do i even do here" button π-inform DER|PEMβ this sets the EC parameters input format, and ngl it's unspecified by default. checkopenssl-format-options(1)for the deets.-outform DER|PEMβ the EC parameters output format, and the default here isPEM. seeopenssl-format-options(1)for details. also, heads up: parameters are encoded asEcpkParametersas specified in IETF RFC 3279 π-in filenameβ tells it which input file to read parameters from. if you don't pass this, it just reads from standard input. no biggie.-out filenameβ where the output filename parameters go. if it's not present, standard output gets used instead. and lowkey here's the spicy bit: the output filename can be the same as the input filename, which means it replaces the file contents. and note β file I/O is not atomic. the output file gets truncated and then written. so like, don't come for me if something goes sideways mid-write π-nooutβ this inhibits the output of the encoded version of the parameters. basically "don't print that part, thanks."-textβ prints out the EC parameters in human readable form. for when you wanna actually read the thing π-checkβ validates the elliptic curve parameters. vibes check, but for curves β-check_namedβ validates the elliptic name curve parameters by checking if the curve parameters match any built-in curves. it's like matching your outfit against the whole closet π-name argβ uses the EC parameters with the specified 'short' name. 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 then exits. it's giving "i showed you the menu, now i'm leaving" πͺ-conv_form argβ this specifies how the points on the elliptic curve get converted into octet strings. possible values are:compressed,uncompressed(the default value) andhybrid. for more info on point conversion forms, go read the X9.62 standard π. note: due to patent issues,compressedis disabled by default for binary curves and can be enabled by defining the preprocessor macroOPENSSL_EC_BIN_PT_COMPat compile time. yeah. patents. in this economy. π-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, 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. so don't try it, bestie π-no_seedβ this inhibits the'seed'for the parameter generation from being included in theECParametersstructure (see RFC 3279). keeping secrets π€«-genkeyβ this will generate an EC private key using the specified parameters. now we're cooking π₯-engine idβ see "Engine Options" inopenssl(1). and psst β this option is deprecated. it's giving legacy. it's giving 3.0 energy.-rand files,-writerand fileβ see "Random State Options" inopenssl(1)for details. randomness queen π-provider name-provider-path path-provparam [name:]key=value-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7). provider lore, go read it β¨
also real talk for a sec: 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... this one still slays, but those two are the multi-hyphenate icons π
πΈ EXAMPLES πΈ
the docs for the openssl-genpkey(1) and openssl-pkeyparam(1) commands contain examples equivalent to the ones listed here. but here's the rundown anyway, because i love you π
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)
like, go read those too. they're all linked in the group chat π«Ά
π§ HISTORY π§
- the
-engineoption was deprecated in OpenSSL 3.0. - the
-Coption was removed in OpenSSL 3.0. gone. not coming back. rip bozo π
π 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 and that's the whole page, bestie!! π this one's from OpenSSL 3.5.0, dated 2026-09-25 β so if you're reading this, hi from the future, hope your curves are valid and your parameters are named πβ¨ slay, periodt, go check your params π¦
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms