openssl-ecparam.pod.in 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-ecparam - EC parameter manipulation and generation
  5. =head1 SYNOPSIS
  6. B<openssl ecparam>
  7. [B<-help>]
  8. [B<-inform> B<DER>|B<PEM>]
  9. [B<-outform> B<DER>|B<PEM>]
  10. [B<-in> I<filename>]
  11. [B<-out> I<filename>]
  12. [B<-noout>]
  13. [B<-text>]
  14. [B<-check>]
  15. [B<-check_named>]
  16. [B<-name> I<arg>]
  17. [B<-list_curves>]
  18. [B<-conv_form> I<arg>]
  19. [B<-param_enc> I<arg>]
  20. [B<-no_seed>]
  21. [B<-genkey>]
  22. {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -}
  23. {- $OpenSSL::safe::opt_provider_synopsis -}
  24. =head1 DESCRIPTION
  25. This command is used to manipulate or generate EC parameter files.
  26. OpenSSL is currently not able to generate new groups and therefore
  27. this command can only create EC parameters from known (named) curves.
  28. =head1 OPTIONS
  29. =over 4
  30. =item B<-help>
  31. Print out a usage message.
  32. =item B<-inform> B<DER>|B<PEM>
  33. The EC parameters input format; unspecified by default.
  34. See L<openssl-format-options(1)> for details.
  35. =item B<-outform> B<DER>|B<PEM>
  36. The EC parameters output format; the default is B<PEM>.
  37. See L<openssl-format-options(1)> for details.
  38. Parameters are encoded as B<EcpkParameters> as specified in IETF RFC 3279.
  39. =item B<-in> I<filename>
  40. This specifies the input filename to read parameters from or standard input if
  41. this option is not specified.
  42. =item B<-out> I<filename>
  43. This specifies the output filename parameters to. Standard output is used
  44. if this option is not present. The output filename should B<not> be the same
  45. as the input filename.
  46. =item B<-noout>
  47. This option inhibits the output of the encoded version of the parameters.
  48. =item B<-text>
  49. This option prints out the EC parameters in human readable form.
  50. =item B<-check>
  51. Validate the elliptic curve parameters.
  52. =item B<-check_named>
  53. Validate the elliptic name curve parameters by checking if the curve parameters
  54. match any built-in curves.
  55. =item B<-name> I<arg>
  56. Use the EC parameters with the specified 'short' name. Use B<-list_curves>
  57. to get a list of all currently implemented EC parameters.
  58. =item B<-list_curves>
  59. Print out a list of all currently implemented EC parameters names and exit.
  60. =item B<-conv_form> I<arg>
  61. This specifies how the points on the elliptic curve are converted
  62. into octet strings. Possible values are: B<compressed>, B<uncompressed> (the
  63. default value) and B<hybrid>. For more information regarding
  64. the point conversion forms please read the X9.62 standard.
  65. B<Note> Due to patent issues the B<compressed> option is disabled
  66. by default for binary curves and can be enabled by defining
  67. the preprocessor macro B<OPENSSL_EC_BIN_PT_COMP> at compile time.
  68. =item B<-param_enc> I<arg>
  69. This specifies how the elliptic curve parameters are encoded.
  70. Possible value are: B<named_curve>, i.e. the ec parameters are
  71. specified by an OID, or B<explicit> where the ec parameters are
  72. explicitly given (see RFC 3279 for the definition of the
  73. EC parameters structures). The default value is B<named_curve>.
  74. B<Note> the B<implicitlyCA> alternative, as specified in RFC 3279,
  75. is currently not implemented in OpenSSL.
  76. =item B<-no_seed>
  77. This option inhibits that the 'seed' for the parameter generation
  78. is included in the ECParameters structure (see RFC 3279).
  79. =item B<-genkey>
  80. This option will generate an EC private key using the specified parameters.
  81. {- $OpenSSL::safe::opt_engine_item -}
  82. {- $OpenSSL::safe::opt_r_item -}
  83. {- $OpenSSL::safe::opt_provider_item -}
  84. =back
  85. The L<openssl-genpkey(1)> and L<openssl-pkeyparam(1)> commands are capable
  86. of performing all the operations this command can, as well as supporting
  87. other public key types.
  88. =head1 EXAMPLES
  89. The documentation for the L<openssl-genpkey(1)> and L<openssl-pkeyparam(1)>
  90. commands contains examples equivalent to the ones listed here.
  91. To create EC parameters with the group 'prime192v1':
  92. openssl ecparam -out ec_param.pem -name prime192v1
  93. To create EC parameters with explicit parameters:
  94. openssl ecparam -out ec_param.pem -name prime192v1 -param_enc explicit
  95. To validate given EC parameters:
  96. openssl ecparam -in ec_param.pem -check
  97. To create EC parameters and a private key:
  98. openssl ecparam -out ec_key.pem -name prime192v1 -genkey
  99. To change the point encoding to 'compressed':
  100. openssl ecparam -in ec_in.pem -out ec_out.pem -conv_form compressed
  101. To print out the EC parameters to standard output:
  102. openssl ecparam -in ec_param.pem -noout -text
  103. =head1 SEE ALSO
  104. L<openssl(1)>,
  105. L<openssl-pkeyparam(1)>,
  106. L<openssl-genpkey(1)>,
  107. L<openssl-ec(1)>,
  108. L<openssl-dsaparam(1)>
  109. =head1 HISTORY
  110. The B<-engine> option was deprecated in OpenSSL 3.0.
  111. The B<-C> option was removed in OpenSSL 3.0.
  112. =head1 COPYRIGHT
  113. Copyright 2003-2021 The OpenSSL Project Authors. All Rights Reserved.
  114. Licensed under the Apache License 2.0 (the "License"). You may not use
  115. this file except in compliance with the License. You can obtain a copy
  116. in the file LICENSE in the source distribution or at
  117. L<https://www.openssl.org/source/license.html>.
  118. =cut