summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2016-08-10 17:41:08 +0000
committerjmc <>2016-08-10 17:41:08 +0000
commitcd136ec7c1c72f19ec727ffd658d119cdae75afe (patch)
tree2c25f3f2e1dad0d0411e3ef5469716f431603766 /src
parent71d42f7a91cc5eb28ad1f1a7dc83ebd96f646628 (diff)
downloadopenbsd-cd136ec7c1c72f19ec727ffd658d119cdae75afe.tar.gz
openbsd-cd136ec7c1c72f19ec727ffd658d119cdae75afe.tar.bz2
openbsd-cd136ec7c1c72f19ec727ffd658d119cdae75afe.zip
shorten ecparam;
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/openssl.1152
1 files changed, 50 insertions, 102 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 6e4c6ae951..3ff441a59f 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.47 2016/08/09 17:07:33 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.48 2016/08/10 17:41:08 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.\"
@@ -112,7 +112,7 @@
112.\" 112.\"
113.\" OPENSSL 113.\" OPENSSL
114.\" 114.\"
115.Dd $Mdocdate: August 9 2016 $ 115.Dd $Mdocdate: August 10 2016 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -1015,7 +1015,7 @@ The output file to write to, or standard output if not specified.
1015.It Fl outform Cm der | pem 1015.It Fl outform Cm der | pem
1016The output format. 1016The output format.
1017.It Fl text 1017.It Fl text
1018Print out the CRL in text form. 1018Print the CRL in text form.
1019.El 1019.El
1020.Sh CRL2PKCS7 1020.Sh CRL2PKCS7
1021.nr nS 1 1021.nr nS 1
@@ -1093,9 +1093,9 @@ The options are as follows:
1093.It Fl binary 1093.It Fl binary
1094Output the digest or signature in binary form. 1094Output the digest or signature in binary form.
1095.It Fl c 1095.It Fl c
1096Print out the digest in two-digit groups separated by colons. 1096Print the digest in two-digit groups separated by colons.
1097.It Fl d 1097.It Fl d
1098Print out BIO debugging information. 1098Print BIO debugging information.
1099.It Fl Ar digest 1099.It Fl Ar digest
1100Use the specified message 1100Use the specified message
1101.Ar digest . 1101.Ar digest .
@@ -1246,7 +1246,7 @@ or standard output if not specified.
1246.It Fl outform Cm der | pem 1246.It Fl outform Cm der | pem
1247The output format. 1247The output format.
1248.It Fl text 1248.It Fl text
1249Print out the DH parameters in human readable form. 1249Print the DH parameters in human readable form.
1250.It Ar numbits 1250.It Ar numbits
1251Generate a parameter set of size 1251Generate a parameter set of size
1252.Ar numbits . 1252.Ar numbits .
@@ -1361,7 +1361,7 @@ By default, a private key is output.
1361With this option a public key will be output instead. 1361With this option a public key will be output instead.
1362This option is automatically set if the input is a public key. 1362This option is automatically set if the input is a public key.
1363.It Fl text 1363.It Fl text
1364Print out the public/private key components and parameters. 1364Print the public/private key components and parameters.
1365.El 1365.El
1366.Sh DSAPARAM 1366.Sh DSAPARAM
1367.nr nS 1 1367.nr nS 1
@@ -1519,8 +1519,8 @@ When used with a public key it
1519uses the SubjectPublicKeyInfo structure as specified in RFC 3280. 1519uses the SubjectPublicKeyInfo structure as specified in RFC 3280.
1520.Cm pem 1520.Cm pem
1521is the default format: 1521is the default format:
1522it consists of the DER format base64 1522it consists of the DER format base64-encoded
1523encoded with additional header and footer lines. 1523with additional header and footer lines.
1524In the case of a private key 1524In the case of a private key
1525PKCS#8 format is also accepted. 1525PKCS#8 format is also accepted.
1526.It Fl noout 1526.It Fl noout
@@ -1558,40 +1558,47 @@ By default a private key is output;
1558with this option a public key is output instead. 1558with this option a public key is output instead.
1559This option is automatically set if the input is a public key. 1559This option is automatically set if the input is a public key.
1560.It Fl text 1560.It Fl text
1561Print out the public/private key components and parameters. 1561Print the public/private key components and parameters.
1562.El 1562.El
1563.\"
1564.\" ECPARAM
1565.\"
1566.Sh ECPARAM 1563.Sh ECPARAM
1567.nr nS 1 1564.nr nS 1
1568.Nm "openssl ecparam" 1565.Nm "openssl ecparam"
1569.Bk -words
1570.Op Fl C 1566.Op Fl C
1571.Op Fl check 1567.Op Fl check
1572.Op Fl conv_form Ar arg 1568.Op Fl conv_form Ar arg
1573.Op Fl genkey 1569.Op Fl genkey
1574.Op Fl in Ar file 1570.Op Fl in Ar file
1575.Op Fl inform Ar DER | PEM 1571.Op Fl inform Cm der | pem
1576.Op Fl list_curves 1572.Op Fl list_curves
1577.Op Fl name Ar arg 1573.Op Fl name Ar arg
1578.Op Fl no_seed 1574.Op Fl no_seed
1579.Op Fl noout 1575.Op Fl noout
1580.Op Fl out Ar file 1576.Op Fl out Ar file
1581.Op Fl outform Ar DER | PEM 1577.Op Fl outform Cm der | pem
1582.Op Fl param_enc Ar arg 1578.Op Fl param_enc Ar arg
1583.Op Fl text 1579.Op Fl text
1584.Ek
1585.nr nS 0 1580.nr nS 0
1586.Pp 1581.Pp
1587This command is used to manipulate or generate EC parameter files. 1582The
1583.Nm ecparam
1584command is used to manipulate or generate EC parameter files.
1585.Nm openssl
1586is not able to generate new groups so
1587.Nm ecparam
1588can only create EC parameters from known (named) curves.
1589.Pp
1590PEM format EC parameters use the header and footer lines:
1591.Bd -literal -offset indent
1592-----BEGIN EC PARAMETERS-----
1593-----END EC PARAMETERS-----
1594.Ed
1588.Pp 1595.Pp
1589The options are as follows: 1596The options are as follows:
1590.Bl -tag -width Ds 1597.Bl -tag -width Ds
1591.It Fl C 1598.It Fl C
1592Convert the EC parameters into C code. 1599Convert the EC parameters into C code.
1593The parameters can then be loaded by calling the 1600The parameters can then be loaded by calling the
1594.Fn get_ec_group_XXX 1601.No get_ec_group_ Ns Ar XXX
1595function. 1602function.
1596.It Fl check 1603.It Fl check
1597Validate the elliptic curve parameters. 1604Validate the elliptic curve parameters.
@@ -1600,57 +1607,50 @@ Specify how the points on the elliptic curve are converted
1600into octet strings. 1607into octet strings.
1601Possible values are: 1608Possible values are:
1602.Cm compressed 1609.Cm compressed
1603(the default value), 1610(the default),
1604.Cm uncompressed , 1611.Cm uncompressed ,
1605and 1612and
1606.Cm hybrid . 1613.Cm hybrid .
1607For more information regarding 1614For more information regarding
1608the point conversion forms please read the X9.62 standard. 1615the point conversion forms see the X9.62 standard.
1609Note: 1616Note:
1610Due to patent issues the 1617Due to patent issues the
1611.Cm compressed 1618.Cm compressed
1612option is disabled by default for binary curves 1619option is disabled by default for binary curves
1613and can be enabled by defining the preprocessor macro 1620and can be enabled by defining the preprocessor macro
1614.Ar OPENSSL_EC_BIN_PT_COMP 1621.Dv OPENSSL_EC_BIN_PT_COMP
1615at compile time. 1622at compile time.
1616.It Fl genkey 1623.It Fl genkey
1617Generate an EC private key using the specified parameters. 1624Generate an EC private key using the specified parameters.
1618.It Fl in Ar file 1625.It Fl in Ar file
1619Specify the input filename to read parameters from or standard input if 1626The input file to read from,
1620this option is not specified. 1627or standard input if not specified.
1621.It Fl inform Ar DER | PEM 1628.It Fl inform Cm der | pem
1622Specify the input format. 1629The input format.
1623DER uses an ASN.1 DER-encoded 1630.Cm der
1631uses an ASN.1 DER-encoded
1624form compatible with RFC 3279 EcpkParameters. 1632form compatible with RFC 3279 EcpkParameters.
1625PEM is the default format: 1633.Cm pem
1626it consists of the DER format base64 encoded with additional 1634is the default format:
1635it consists of the DER format base64-encoded with additional
1627header and footer lines. 1636header and footer lines.
1628.It Fl list_curves 1637.It Fl list_curves
1629Print out a list of all 1638Print a list of all
1630currently implemented EC parameter names and exit. 1639currently implemented EC parameter names and exit.
1631.It Fl name Ar arg 1640.It Fl name Ar arg
1632Use the EC parameters with the specified 'short' name. 1641Use the EC parameters with the specified "short" name.
1633Use
1634.Fl list_curves
1635to get a list of all currently implemented EC parameters.
1636.It Fl no_seed 1642.It Fl no_seed
1637Inhibit that the 'seed' for the parameter generation 1643Do not include the seed for the parameter generation
1638is included in the ECParameters structure (see RFC 3279). 1644in the ECParameters structure (see RFC 3279).
1639.It Fl noout 1645.It Fl noout
1640Inhibit the output of the encoded version of the parameters. 1646Do not output the encoded version of the parameters.
1641.It Fl out Ar file 1647.It Fl out Ar file
1642Specify the output filename parameters are written to. 1648The output file to write to,
1643Standard output is used if this option is not present. 1649or standard output if not specified.
1644The output filename should 1650.It Fl outform Cm der | pem
1645.Em not 1651The output format.
1646be the same as the input filename.
1647.It Fl outform Ar DER | PEM
1648Specify the output format;
1649the parameters have the same meaning as the
1650.Fl inform
1651option.
1652.It Fl param_enc Ar arg 1652.It Fl param_enc Ar arg
1653This specifies how the elliptic curve parameters are encoded. 1653Specify how the elliptic curve parameters are encoded.
1654Possible value are: 1654Possible value are:
1655.Cm named_curve , 1655.Cm named_curve ,
1656i.e. the EC parameters are specified by an OID, or 1656i.e. the EC parameters are specified by an OID, or
@@ -1662,62 +1662,10 @@ The default value is
1662Note: the 1662Note: the
1663.Cm implicitlyCA 1663.Cm implicitlyCA
1664alternative, as specified in RFC 3279, 1664alternative, as specified in RFC 3279,
1665is currently not implemented in 1665is currently not implemented.
1666.Nm OpenSSL .
1667.It Fl text 1666.It Fl text
1668Print out the EC parameters in human readable form. 1667Print the EC parameters in human readable form.
1669.El 1668.El
1670.Sh ECPARAM NOTES
1671PEM format EC parameters use the header and footer lines:
1672.Bd -literal -offset indent
1673-----BEGIN EC PARAMETERS-----
1674-----END EC PARAMETERS-----
1675.Ed
1676.Pp
1677.Nm OpenSSL
1678is currently not able to generate new groups and therefore
1679.Nm ecparam
1680can only create EC parameters from known (named) curves.
1681.Sh ECPARAM EXAMPLES
1682To create EC parameters with the group 'prime192v1':
1683.Bd -literal -offset indent
1684$ openssl ecparam -out ec_param.pem -name prime192v1
1685.Ed
1686.Pp
1687To create EC parameters with explicit parameters:
1688.Bd -literal -offset indent
1689$ openssl ecparam -out ec_param.pem -name prime192v1 \e
1690 -param_enc explicit
1691.Ed
1692.Pp
1693To validate given EC parameters:
1694.Bd -literal -offset indent
1695$ openssl ecparam -in ec_param.pem -check
1696.Ed
1697.Pp
1698To create EC parameters and a private key:
1699.Bd -literal -offset indent
1700$ openssl ecparam -out ec_key.pem -name prime192v1 -genkey
1701.Ed
1702.Pp
1703To change the point encoding to 'compressed':
1704.Bd -literal -offset indent
1705$ openssl ecparam -in ec_in.pem -out ec_out.pem \e
1706 -conv_form compressed
1707.Ed
1708.Pp
1709To print out the EC parameters to standard output:
1710.Bd -literal -offset indent
1711$ openssl ecparam -in ec_param.pem -noout -text
1712.Ed
1713.Sh ECPARAM HISTORY
1714The
1715.Nm ecparam
1716command was first introduced in
1717.Nm OpenSSL
17180.9.8.
1719.Sh ECPARAM AUTHORS
1720.An Nils Larsch .
1721.\" 1669.\"
1722.\" ENC 1670.\" ENC
1723.\" 1671.\"