openssl-ecparam.pod.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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<-C>]
  15. [B<-check>]
  16. [B<-check_named>]
  17. [B<-name> I<arg>]
  18. [B<-list_curves>]
  19. [B<-conv_form> I<arg>]
  20. [B<-param_enc> I<arg>]
  21. [B<-no_seed>]
  22. [B<-genkey>]
  23. {- $OpenSSL::safe::opt_engine_synopsis -}
  24. {- $OpenSSL::safe::opt_r_synopsis -}
  25. {- $OpenSSL::safe::opt_provider_synopsis -}
  26. =for openssl ifdef engine
  27. =head1 DESCRIPTION
  28. This command is used to manipulate or generate EC parameter files.
  29. OpenSSL is currently not able to generate new groups and therefore
  30. this command can only create EC parameters from known (named) curves.
  31. =head1 OPTIONS
  32. =over 4
  33. =item B<-help>
  34. Print out a usage message.
  35. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  36. The input and formats; the default is B<PEM>.
  37. See L<openssl(1)/Format Options> 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<-C>
  51. This option converts the EC parameters into C code. The parameters can then
  52. be loaded by calling the get_ec_group_XXX() function.
  53. =item B<-check>
  54. Validate the elliptic curve parameters.
  55. =item B<-check_named>
  56. Validate the elliptic name curve parameters by checking if the curve parameters
  57. match any built-in curves.
  58. =item B<-name> I<arg>
  59. Use the EC parameters with the specified 'short' name. Use B<-list_curves>
  60. to get a list of all currently implemented EC parameters.
  61. =item B<-list_curves>
  62. Print out a list of all currently implemented EC parameters names and exit.
  63. =item B<-conv_form> I<arg>
  64. This specifies how the points on the elliptic curve are converted
  65. into octet strings. Possible values are: B<compressed>, B<uncompressed> (the
  66. default value) and B<hybrid>. For more information regarding
  67. the point conversion forms please read the X9.62 standard.
  68. B<Note> Due to patent issues the B<compressed> option is disabled
  69. by default for binary curves and can be enabled by defining
  70. the preprocessor macro B<OPENSSL_EC_BIN_PT_COMP> at compile time.
  71. =item B<-param_enc> I<arg>
  72. This specifies how the elliptic curve parameters are encoded.
  73. Possible value are: B<named_curve>, i.e. the ec parameters are
  74. specified by an OID, or B<explicit> where the ec parameters are
  75. explicitly given (see RFC 3279 for the definition of the
  76. EC parameters structures). The default value is B<named_curve>.
  77. B<Note> the B<implicitlyCA> alternative, as specified in RFC 3279,
  78. is currently not implemented in OpenSSL.
  79. =item B<-no_seed>
  80. This option inhibits that the 'seed' for the parameter generation
  81. is included in the ECParameters structure (see RFC 3279).
  82. =item B<-genkey>
  83. This option will generate an EC private key using the specified parameters.
  84. {- $OpenSSL::safe::opt_engine_item -}
  85. {- $OpenSSL::safe::opt_r_item -}
  86. {- $OpenSSL::safe::opt_provider_item -}
  87. =back
  88. =head1 EXAMPLES
  89. Examples equivalent to these can be found in the documentation for the
  90. non-deprecated L<openssl-genpkey(1)> and L<openssl-pkeyparam(1)> commands.
  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. =head1 COPYRIGHT
  112. Copyright 2003-2020 The OpenSSL Project Authors. All Rights Reserved.
  113. Licensed under the Apache License 2.0 (the "License"). You may not use
  114. this file except in compliance with the License. You can obtain a copy
  115. in the file LICENSE in the source distribution or at
  116. L<https://www.openssl.org/source/license.html>.
  117. =cut