openssl-ecparam.pod.in 4.6 KB

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