diff options
| author | jmc <> | 2010-10-08 17:57:19 +0000 |
|---|---|---|
| committer | jmc <> | 2010-10-08 17:57:19 +0000 |
| commit | fc600d7b7678484d28305f72ce8a5f56aef59e40 (patch) | |
| tree | ee4ae21043a824057daee576001f844db6a3b93d | |
| parent | 331bf347c2878d5c873d15d4a56b0b5c9f89d2c1 (diff) | |
| download | openbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.tar.gz openbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.tar.bz2 openbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.zip | |
document "openssl ecparam";
| -rw-r--r-- | src/usr.sbin/openssl/openssl.1 | 183 |
1 files changed, 182 insertions, 1 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1 index 1884162fe3..79febb62ab 100644 --- a/src/usr.sbin/openssl/openssl.1 +++ b/src/usr.sbin/openssl/openssl.1 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: openssl.1,v 1.70 2010/10/08 05:41:48 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.71 2010/10/08 17:57:19 jmc Exp $ |
| 2 | .\" ==================================================================== | 2 | .\" ==================================================================== |
| 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
| 4 | .\" | 4 | .\" |
| @@ -280,6 +280,8 @@ and | |||
| 280 | .Cm pkeyparam . | 280 | .Cm pkeyparam . |
| 281 | .It Cm ec | 281 | .It Cm ec |
| 282 | Elliptic curve (EC) key processing. | 282 | Elliptic curve (EC) key processing. |
| 283 | .It Cm ecparam | ||
| 284 | EC parameter manipulation and generation. | ||
| 283 | .It Cm enc | 285 | .It Cm enc |
| 284 | Encoding with ciphers. | 286 | Encoding with ciphers. |
| 285 | .It Cm engine | 287 | .It Cm engine |
| @@ -2712,6 +2714,185 @@ command was first introduced in | |||
| 2712 | .Sh EC AUTHORS | 2714 | .Sh EC AUTHORS |
| 2713 | .An Nils Larsch . | 2715 | .An Nils Larsch . |
| 2714 | .\" | 2716 | .\" |
| 2717 | .\" ECPARAM | ||
| 2718 | .\" | ||
| 2719 | .Sh ECPARAM | ||
| 2720 | .Nm openssl ecparam | ||
| 2721 | .Bk -words | ||
| 2722 | .Op Fl C | ||
| 2723 | .Op Fl check | ||
| 2724 | .Op Fl genkey | ||
| 2725 | .Op Fl list_curves | ||
| 2726 | .Op Fl no_seed | ||
| 2727 | .Op Fl noout | ||
| 2728 | .Op Fl text | ||
| 2729 | .Op Fl conv_form Ar arg | ||
| 2730 | .Op Fl engine Ar id | ||
| 2731 | .Op Fl in Ar filename | ||
| 2732 | .Op Fl inform Ar DER | PEM | ||
| 2733 | .Op Fl name Ar arg | ||
| 2734 | .Op Fl out Ar filename | ||
| 2735 | .Op Fl outform Ar DER | PEM | ||
| 2736 | .Op Fl param_enc Ar arg | ||
| 2737 | .Op Fl rand Ar file ... | ||
| 2738 | .Ek | ||
| 2739 | .Pp | ||
| 2740 | This command is used to manipulate or generate EC parameter files. | ||
| 2741 | .Pp | ||
| 2742 | The options are as follows: | ||
| 2743 | .Bl -tag -width Ds | ||
| 2744 | .It Fl C | ||
| 2745 | Convert the EC parameters into C code. | ||
| 2746 | The parameters can then be loaded by calling the | ||
| 2747 | .Fn get_ec_group_XXX | ||
| 2748 | function. | ||
| 2749 | .It Fl check | ||
| 2750 | Validate the elliptic curve parameters. | ||
| 2751 | .It Fl conv_form Ar arg | ||
| 2752 | Specify how the points on the elliptic curve are converted | ||
| 2753 | into octet strings. | ||
| 2754 | Possible values are: | ||
| 2755 | .Cm compressed | ||
| 2756 | (the default value), | ||
| 2757 | .Cm uncompressed , | ||
| 2758 | and | ||
| 2759 | .Cm hybrid . | ||
| 2760 | For more information regarding | ||
| 2761 | the point conversion forms please read the X9.62 standard. | ||
| 2762 | Note: | ||
| 2763 | Due to patent issues the | ||
| 2764 | .Cm compressed | ||
| 2765 | option is disabled by default for binary curves | ||
| 2766 | and can be enabled by defining the preprocessor macro | ||
| 2767 | .Ar OPENSSL_EC_BIN_PT_COMP | ||
| 2768 | at compile time. | ||
| 2769 | .It Fl engine Ar id | ||
| 2770 | Specifying an engine (by its unique | ||
| 2771 | .Ar id | ||
| 2772 | string) will cause | ||
| 2773 | .Nm ecparam | ||
| 2774 | to attempt to obtain a functional reference to the specified engine, | ||
| 2775 | thus initialising it if needed. | ||
| 2776 | The engine will then be set as the default | ||
| 2777 | for all available algorithms. | ||
| 2778 | .It Fl genkey | ||
| 2779 | Generate an EC private key using the specified parameters. | ||
| 2780 | .It Fl in Ar filename | ||
| 2781 | Specify the input filename to read parameters from or standard input if | ||
| 2782 | this option is not specified. | ||
| 2783 | .It Fl inform Ar DER | PEM | ||
| 2784 | Specify the input format. | ||
| 2785 | DER uses an ASN.1 DER encoded | ||
| 2786 | form compatible with RFC 3279 EcpkParameters. | ||
| 2787 | PEM is the default format: | ||
| 2788 | it consists of the DER format base64 encoded with additional | ||
| 2789 | header and footer lines. | ||
| 2790 | .It Fl list_curves | ||
| 2791 | Print out a list of all | ||
| 2792 | currently implemented EC parameter names and exit. | ||
| 2793 | .It Fl name Ar arg | ||
| 2794 | Use the EC parameters with the specified 'short' name. | ||
| 2795 | Use | ||
| 2796 | .Fl list_curves | ||
| 2797 | to get a list of all currently implemented EC parameters. | ||
| 2798 | .It Fl no_seed | ||
| 2799 | Inhibit that the 'seed' for the parameter generation | ||
| 2800 | is included in the ECParameters structure (see RFC 3279). | ||
| 2801 | .It Fl noout | ||
| 2802 | Inhibit the output of the encoded version of the parameters. | ||
| 2803 | .It Fl out Ar filename | ||
| 2804 | Specify the output filename parameters are written to. | ||
| 2805 | Standard output is used if this option is not present. | ||
| 2806 | The output filename should | ||
| 2807 | .Em not | ||
| 2808 | be the same as the input filename. | ||
| 2809 | .It Fl outform Ar DER | PEM | ||
| 2810 | Specify the output format; | ||
| 2811 | the parameters have the same meaning as the | ||
| 2812 | .Fl inform | ||
| 2813 | option. | ||
| 2814 | .It Fl param_enc Ar arg | ||
| 2815 | This specifies how the elliptic curve parameters are encoded. | ||
| 2816 | Possible value are: | ||
| 2817 | .Cm named_curve , | ||
| 2818 | i.e. the EC parameters are specified by an OID, or | ||
| 2819 | .Cm explicit , | ||
| 2820 | where the EC parameters are explicitly given | ||
| 2821 | (see RFC 3279 for the definition of the EC parameter structures). | ||
| 2822 | The default value is | ||
| 2823 | .Cm named_curve . | ||
| 2824 | Note: the | ||
| 2825 | .Cm implicitlyCA | ||
| 2826 | alternative, as specified in RFC 3279, | ||
| 2827 | is currently not implemented in | ||
| 2828 | .Nm OpenSSL . | ||
| 2829 | .It Fl rand Ar file ... | ||
| 2830 | A file or files containing random data used to seed the random number | ||
| 2831 | generator, or an EGD socket (see | ||
| 2832 | .Xr RAND_egd 3 ) . | ||
| 2833 | Multiple files can be specified separated by an OS-dependent character. | ||
| 2834 | The separator is | ||
| 2835 | .Sq \&; | ||
| 2836 | for MS-Windows, | ||
| 2837 | .Sq \&, | ||
| 2838 | for OpenVMS, and | ||
| 2839 | .Sq \&: | ||
| 2840 | for all others. | ||
| 2841 | .It Fl text | ||
| 2842 | Print out the EC parameters in human readable form. | ||
| 2843 | .El | ||
| 2844 | .Sh ECPARAM NOTES | ||
| 2845 | PEM format EC parameters use the header and footer lines: | ||
| 2846 | .Bd -literal -offset indent | ||
| 2847 | -----BEGIN EC PARAMETERS----- | ||
| 2848 | -----END EC PARAMETERS----- | ||
| 2849 | .Ed | ||
| 2850 | .Pp | ||
| 2851 | .Nm OpenSSL | ||
| 2852 | is currently not able to generate new groups and therefore | ||
| 2853 | .Nm ecparam | ||
| 2854 | can only create EC parameters from known (named) curves. | ||
| 2855 | .Sh ECPARAM EXAMPLES | ||
| 2856 | To create EC parameters with the group 'prime192v1': | ||
| 2857 | .Bd -literal -offset indent | ||
| 2858 | $ openssl ecparam -out ec_param.pem -name prime192v1 | ||
| 2859 | .Ed | ||
| 2860 | .Pp | ||
| 2861 | To create EC parameters with explicit parameters: | ||
| 2862 | .Bd -literal -offset indent | ||
| 2863 | $ openssl ecparam -out ec_param.pem -name prime192v1 \e | ||
| 2864 | -param_enc explicit | ||
| 2865 | .Ed | ||
| 2866 | .Pp | ||
| 2867 | To validate given EC parameters: | ||
| 2868 | .Bd -literal -offset indent | ||
| 2869 | $ openssl ecparam -in ec_param.pem -check | ||
| 2870 | .Ed | ||
| 2871 | .Pp | ||
| 2872 | To create EC parameters and a private key: | ||
| 2873 | .Bd -literal -offset indent | ||
| 2874 | $ openssl ecparam -out ec_key.pem -name prime192v1 -genkey | ||
| 2875 | .Ed | ||
| 2876 | .Pp | ||
| 2877 | To change the point encoding to 'compressed': | ||
| 2878 | .Bd -literal -offset indent | ||
| 2879 | $ openssl ecparam -in ec_in.pem -out ec_out.pem \e | ||
| 2880 | -conv_form compressed | ||
| 2881 | .Ed | ||
| 2882 | .Pp | ||
| 2883 | To print out the EC parameters to standard output: | ||
| 2884 | .Bd -literal -offset indent | ||
| 2885 | $ openssl ecparam -in ec_param.pem -noout -text | ||
| 2886 | .Ed | ||
| 2887 | .Sh ECPARAM HISTORY | ||
| 2888 | The | ||
| 2889 | .Nm ecparam | ||
| 2890 | command was first introduced in | ||
| 2891 | .Nm OpenSSL | ||
| 2892 | 0.9.8. | ||
| 2893 | .Sh ECPARAM AUTHORS | ||
| 2894 | .An Nils Larsch . | ||
| 2895 | .\" | ||
| 2715 | .\" ENC | 2896 | .\" ENC |
| 2716 | .\" | 2897 | .\" |
| 2717 | .Sh ENC | 2898 | .Sh ENC |
