openssl-ecparam.pod.in 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. =for openssl ifdef engine
  26. =head1 DESCRIPTION
  27. This command is used to manipulate or generate EC parameter files.
  28. OpenSSL is currently not able to generate new groups and therefore
  29. this command can only create EC parameters from known (named) curves.
  30. =head1 OPTIONS
  31. =over 4
  32. =item B<-help>
  33. Print out a usage message.
  34. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  35. The input and formats; the default is B<PEM>.
  36. See L<openssl(1)/Format Options> for details.
  37. Parameters are encoded as B<EcpkParameters> as specified in IETF RFC 3279.
  38. =item B<-in> I<filename>
  39. This specifies the input filename to read parameters from or standard input if
  40. this option is not specified.
  41. =item B<-out> I<filename>
  42. This specifies the output filename parameters to. Standard output is used
  43. if this option is not present. The output filename should B<not> be the same
  44. as the input filename.
  45. =item B<-noout>
  46. This option inhibits the output of the encoded version of the parameters.
  47. =item B<-text>
  48. This option prints out the EC parameters in human readable form.
  49. =item B<-C>
  50. This option converts the EC parameters into C code. The parameters can then
  51. be loaded by calling the get_ec_group_XXX() function.
  52. =item B<-check>
  53. Validate the elliptic curve parameters.
  54. =item B<-check_named>
  55. Validate the elliptic name curve parameters by checking if the curve parameters
  56. match any built-in curves.
  57. =item B<-name> I<arg>
  58. Use the EC parameters with the specified 'short' name. Use B<-list_curves>
  59. to get a list of all currently implemented EC parameters.
  60. =item B<-list_curves>
  61. Print out a list of all currently implemented EC parameters names and exit.
  62. =item B<-conv_form> I<arg>
  63. This specifies how the points on the elliptic curve are converted
  64. into octet strings. Possible values are: B<compressed>, B<uncompressed> (the
  65. default value) and B<hybrid>. For more information regarding
  66. the point conversion forms please read the X9.62 standard.
  67. B<Note> Due to patent issues the B<compressed> option is disabled
  68. by default for binary curves and can be enabled by defining
  69. the preprocessor macro B<OPENSSL_EC_BIN_PT_COMP> at compile time.
  70. =item B<-param_enc> I<arg>
  71. This specifies how the elliptic curve parameters are encoded.
  72. Possible value are: B<named_curve>, i.e. the ec parameters are
  73. specified by an OID, or B<explicit> where the ec parameters are
  74. explicitly given (see RFC 3279 for the definition of the
  75. EC parameters structures). The default value is B<named_curve>.
  76. B<Note> the B<implicitlyCA> alternative, as specified in RFC 3279,
  77. is currently not implemented in OpenSSL.
  78. =item B<-no_seed>
  79. This option inhibits that the 'seed' for the parameter generation
  80. is included in the ECParameters structure (see RFC 3279).
  81. =item B<-genkey>
  82. This option will generate an EC private key using the specified parameters.
  83. {- $OpenSSL::safe::opt_engine_item -}
  84. {- $OpenSSL::safe::opt_r_item -}
  85. =back
  86. =head1 EXAMPLES
  87. To create EC parameters with the group 'prime192v1':
  88. openssl ecparam -out ec_param.pem -name prime192v1
  89. To create EC parameters with explicit parameters:
  90. openssl ecparam -out ec_param.pem -name prime192v1 -param_enc explicit
  91. To validate given EC parameters:
  92. openssl ecparam -in ec_param.pem -check
  93. To create EC parameters and a private key:
  94. openssl ecparam -out ec_key.pem -name prime192v1 -genkey
  95. To change the point encoding to 'compressed':
  96. openssl ecparam -in ec_in.pem -out ec_out.pem -conv_form compressed
  97. To print out the EC parameters to standard output:
  98. openssl ecparam -in ec_param.pem -noout -text
  99. =head1 SEE ALSO
  100. L<openssl(1)>,
  101. L<openssl-ec(1)>,
  102. L<openssl-dsaparam(1)>
  103. =head1 COPYRIGHT
  104. Copyright 2003-2019 The OpenSSL Project Authors. All Rights Reserved.
  105. Licensed under the Apache License 2.0 (the "License"). You may not use
  106. this file except in compliance with the License. You can obtain a copy
  107. in the file LICENSE in the source distribution or at
  108. L<https://www.openssl.org/source/license.html>.
  109. =cut