summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2010-10-08 17:57:19 +0000
committerjmc <>2010-10-08 17:57:19 +0000
commitfc600d7b7678484d28305f72ce8a5f56aef59e40 (patch)
treeee4ae21043a824057daee576001f844db6a3b93d /src
parent331bf347c2878d5c873d15d4a56b0b5c9f89d2c1 (diff)
downloadopenbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.tar.gz
openbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.tar.bz2
openbsd-fc600d7b7678484d28305f72ce8a5f56aef59e40.zip
document "openssl ecparam";
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/openssl/openssl.1183
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
282Elliptic curve (EC) key processing. 282Elliptic curve (EC) key processing.
283.It Cm ecparam
284EC parameter manipulation and generation.
283.It Cm enc 285.It Cm enc
284Encoding with ciphers. 286Encoding 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
2740This command is used to manipulate or generate EC parameter files.
2741.Pp
2742The options are as follows:
2743.Bl -tag -width Ds
2744.It Fl C
2745Convert the EC parameters into C code.
2746The parameters can then be loaded by calling the
2747.Fn get_ec_group_XXX
2748function.
2749.It Fl check
2750Validate the elliptic curve parameters.
2751.It Fl conv_form Ar arg
2752Specify how the points on the elliptic curve are converted
2753into octet strings.
2754Possible values are:
2755.Cm compressed
2756(the default value),
2757.Cm uncompressed ,
2758and
2759.Cm hybrid .
2760For more information regarding
2761the point conversion forms please read the X9.62 standard.
2762Note:
2763Due to patent issues the
2764.Cm compressed
2765option is disabled by default for binary curves
2766and can be enabled by defining the preprocessor macro
2767.Ar OPENSSL_EC_BIN_PT_COMP
2768at compile time.
2769.It Fl engine Ar id
2770Specifying an engine (by its unique
2771.Ar id
2772string) will cause
2773.Nm ecparam
2774to attempt to obtain a functional reference to the specified engine,
2775thus initialising it if needed.
2776The engine will then be set as the default
2777for all available algorithms.
2778.It Fl genkey
2779Generate an EC private key using the specified parameters.
2780.It Fl in Ar filename
2781Specify the input filename to read parameters from or standard input if
2782this option is not specified.
2783.It Fl inform Ar DER | PEM
2784Specify the input format.
2785DER uses an ASN.1 DER encoded
2786form compatible with RFC 3279 EcpkParameters.
2787PEM is the default format:
2788it consists of the DER format base64 encoded with additional
2789header and footer lines.
2790.It Fl list_curves
2791Print out a list of all
2792currently implemented EC parameter names and exit.
2793.It Fl name Ar arg
2794Use the EC parameters with the specified 'short' name.
2795Use
2796.Fl list_curves
2797to get a list of all currently implemented EC parameters.
2798.It Fl no_seed
2799Inhibit that the 'seed' for the parameter generation
2800is included in the ECParameters structure (see RFC 3279).
2801.It Fl noout
2802Inhibit the output of the encoded version of the parameters.
2803.It Fl out Ar filename
2804Specify the output filename parameters are written to.
2805Standard output is used if this option is not present.
2806The output filename should
2807.Em not
2808be the same as the input filename.
2809.It Fl outform Ar DER | PEM
2810Specify the output format;
2811the parameters have the same meaning as the
2812.Fl inform
2813option.
2814.It Fl param_enc Ar arg
2815This specifies how the elliptic curve parameters are encoded.
2816Possible value are:
2817.Cm named_curve ,
2818i.e. the EC parameters are specified by an OID, or
2819.Cm explicit ,
2820where the EC parameters are explicitly given
2821(see RFC 3279 for the definition of the EC parameter structures).
2822The default value is
2823.Cm named_curve .
2824Note: the
2825.Cm implicitlyCA
2826alternative, as specified in RFC 3279,
2827is currently not implemented in
2828.Nm OpenSSL .
2829.It Fl rand Ar file ...
2830A file or files containing random data used to seed the random number
2831generator, or an EGD socket (see
2832.Xr RAND_egd 3 ) .
2833Multiple files can be specified separated by an OS-dependent character.
2834The separator is
2835.Sq \&;
2836for MS-Windows,
2837.Sq \&,
2838for OpenVMS, and
2839.Sq \&:
2840for all others.
2841.It Fl text
2842Print out the EC parameters in human readable form.
2843.El
2844.Sh ECPARAM NOTES
2845PEM 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
2852is currently not able to generate new groups and therefore
2853.Nm ecparam
2854can only create EC parameters from known (named) curves.
2855.Sh ECPARAM EXAMPLES
2856To 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
2861To 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
2867To validate given EC parameters:
2868.Bd -literal -offset indent
2869$ openssl ecparam -in ec_param.pem -check
2870.Ed
2871.Pp
2872To 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
2877To 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
2883To 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
2888The
2889.Nm ecparam
2890command was first introduced in
2891.Nm OpenSSL
28920.9.8.
2893.Sh ECPARAM AUTHORS
2894.An Nils Larsch .
2895.\"
2715.\" ENC 2896.\" ENC
2716.\" 2897.\"
2717.Sh ENC 2898.Sh ENC