diff options
| author | jmc <> | 2016-08-10 17:41:08 +0000 |
|---|---|---|
| committer | jmc <> | 2016-08-10 17:41:08 +0000 |
| commit | 3a52135cf823326bca526c7e066746c78e7689fe (patch) | |
| tree | 2c25f3f2e1dad0d0411e3ef5469716f431603766 | |
| parent | 21fdf6449656b3f50f68d4e0828ecfb547782cdb (diff) | |
| download | openbsd-3a52135cf823326bca526c7e066746c78e7689fe.tar.gz openbsd-3a52135cf823326bca526c7e066746c78e7689fe.tar.bz2 openbsd-3a52135cf823326bca526c7e066746c78e7689fe.zip | |
shorten ecparam;
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/openssl.1 | 152 |
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 |
| 1016 | The output format. | 1016 | The output format. |
| 1017 | .It Fl text | 1017 | .It Fl text |
| 1018 | Print out the CRL in text form. | 1018 | Print 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 |
| 1094 | Output the digest or signature in binary form. | 1094 | Output the digest or signature in binary form. |
| 1095 | .It Fl c | 1095 | .It Fl c |
| 1096 | Print out the digest in two-digit groups separated by colons. | 1096 | Print the digest in two-digit groups separated by colons. |
| 1097 | .It Fl d | 1097 | .It Fl d |
| 1098 | Print out BIO debugging information. | 1098 | Print BIO debugging information. |
| 1099 | .It Fl Ar digest | 1099 | .It Fl Ar digest |
| 1100 | Use the specified message | 1100 | Use 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 |
| 1247 | The output format. | 1247 | The output format. |
| 1248 | .It Fl text | 1248 | .It Fl text |
| 1249 | Print out the DH parameters in human readable form. | 1249 | Print the DH parameters in human readable form. |
| 1250 | .It Ar numbits | 1250 | .It Ar numbits |
| 1251 | Generate a parameter set of size | 1251 | Generate a parameter set of size |
| 1252 | .Ar numbits . | 1252 | .Ar numbits . |
| @@ -1361,7 +1361,7 @@ By default, a private key is output. | |||
| 1361 | With this option a public key will be output instead. | 1361 | With this option a public key will be output instead. |
| 1362 | This option is automatically set if the input is a public key. | 1362 | This option is automatically set if the input is a public key. |
| 1363 | .It Fl text | 1363 | .It Fl text |
| 1364 | Print out the public/private key components and parameters. | 1364 | Print 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 | |||
| 1519 | uses the SubjectPublicKeyInfo structure as specified in RFC 3280. | 1519 | uses the SubjectPublicKeyInfo structure as specified in RFC 3280. |
| 1520 | .Cm pem | 1520 | .Cm pem |
| 1521 | is the default format: | 1521 | is the default format: |
| 1522 | it consists of the DER format base64 | 1522 | it consists of the DER format base64-encoded |
| 1523 | encoded with additional header and footer lines. | 1523 | with additional header and footer lines. |
| 1524 | In the case of a private key | 1524 | In the case of a private key |
| 1525 | PKCS#8 format is also accepted. | 1525 | PKCS#8 format is also accepted. |
| 1526 | .It Fl noout | 1526 | .It Fl noout |
| @@ -1558,40 +1558,47 @@ By default a private key is output; | |||
| 1558 | with this option a public key is output instead. | 1558 | with this option a public key is output instead. |
| 1559 | This option is automatically set if the input is a public key. | 1559 | This option is automatically set if the input is a public key. |
| 1560 | .It Fl text | 1560 | .It Fl text |
| 1561 | Print out the public/private key components and parameters. | 1561 | Print 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 |
| 1587 | This command is used to manipulate or generate EC parameter files. | 1582 | The |
| 1583 | .Nm ecparam | ||
| 1584 | command is used to manipulate or generate EC parameter files. | ||
| 1585 | .Nm openssl | ||
| 1586 | is not able to generate new groups so | ||
| 1587 | .Nm ecparam | ||
| 1588 | can only create EC parameters from known (named) curves. | ||
| 1589 | .Pp | ||
| 1590 | PEM 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 |
| 1589 | The options are as follows: | 1596 | The options are as follows: |
| 1590 | .Bl -tag -width Ds | 1597 | .Bl -tag -width Ds |
| 1591 | .It Fl C | 1598 | .It Fl C |
| 1592 | Convert the EC parameters into C code. | 1599 | Convert the EC parameters into C code. |
| 1593 | The parameters can then be loaded by calling the | 1600 | The parameters can then be loaded by calling the |
| 1594 | .Fn get_ec_group_XXX | 1601 | .No get_ec_group_ Ns Ar XXX |
| 1595 | function. | 1602 | function. |
| 1596 | .It Fl check | 1603 | .It Fl check |
| 1597 | Validate the elliptic curve parameters. | 1604 | Validate the elliptic curve parameters. |
| @@ -1600,57 +1607,50 @@ Specify how the points on the elliptic curve are converted | |||
| 1600 | into octet strings. | 1607 | into octet strings. |
| 1601 | Possible values are: | 1608 | Possible values are: |
| 1602 | .Cm compressed | 1609 | .Cm compressed |
| 1603 | (the default value), | 1610 | (the default), |
| 1604 | .Cm uncompressed , | 1611 | .Cm uncompressed , |
| 1605 | and | 1612 | and |
| 1606 | .Cm hybrid . | 1613 | .Cm hybrid . |
| 1607 | For more information regarding | 1614 | For more information regarding |
| 1608 | the point conversion forms please read the X9.62 standard. | 1615 | the point conversion forms see the X9.62 standard. |
| 1609 | Note: | 1616 | Note: |
| 1610 | Due to patent issues the | 1617 | Due to patent issues the |
| 1611 | .Cm compressed | 1618 | .Cm compressed |
| 1612 | option is disabled by default for binary curves | 1619 | option is disabled by default for binary curves |
| 1613 | and can be enabled by defining the preprocessor macro | 1620 | and can be enabled by defining the preprocessor macro |
| 1614 | .Ar OPENSSL_EC_BIN_PT_COMP | 1621 | .Dv OPENSSL_EC_BIN_PT_COMP |
| 1615 | at compile time. | 1622 | at compile time. |
| 1616 | .It Fl genkey | 1623 | .It Fl genkey |
| 1617 | Generate an EC private key using the specified parameters. | 1624 | Generate an EC private key using the specified parameters. |
| 1618 | .It Fl in Ar file | 1625 | .It Fl in Ar file |
| 1619 | Specify the input filename to read parameters from or standard input if | 1626 | The input file to read from, |
| 1620 | this option is not specified. | 1627 | or standard input if not specified. |
| 1621 | .It Fl inform Ar DER | PEM | 1628 | .It Fl inform Cm der | pem |
| 1622 | Specify the input format. | 1629 | The input format. |
| 1623 | DER uses an ASN.1 DER-encoded | 1630 | .Cm der |
| 1631 | uses an ASN.1 DER-encoded | ||
| 1624 | form compatible with RFC 3279 EcpkParameters. | 1632 | form compatible with RFC 3279 EcpkParameters. |
| 1625 | PEM is the default format: | 1633 | .Cm pem |
| 1626 | it consists of the DER format base64 encoded with additional | 1634 | is the default format: |
| 1635 | it consists of the DER format base64-encoded with additional | ||
| 1627 | header and footer lines. | 1636 | header and footer lines. |
| 1628 | .It Fl list_curves | 1637 | .It Fl list_curves |
| 1629 | Print out a list of all | 1638 | Print a list of all |
| 1630 | currently implemented EC parameter names and exit. | 1639 | currently implemented EC parameter names and exit. |
| 1631 | .It Fl name Ar arg | 1640 | .It Fl name Ar arg |
| 1632 | Use the EC parameters with the specified 'short' name. | 1641 | Use the EC parameters with the specified "short" name. |
| 1633 | Use | ||
| 1634 | .Fl list_curves | ||
| 1635 | to get a list of all currently implemented EC parameters. | ||
| 1636 | .It Fl no_seed | 1642 | .It Fl no_seed |
| 1637 | Inhibit that the 'seed' for the parameter generation | 1643 | Do not include the seed for the parameter generation |
| 1638 | is included in the ECParameters structure (see RFC 3279). | 1644 | in the ECParameters structure (see RFC 3279). |
| 1639 | .It Fl noout | 1645 | .It Fl noout |
| 1640 | Inhibit the output of the encoded version of the parameters. | 1646 | Do not output the encoded version of the parameters. |
| 1641 | .It Fl out Ar file | 1647 | .It Fl out Ar file |
| 1642 | Specify the output filename parameters are written to. | 1648 | The output file to write to, |
| 1643 | Standard output is used if this option is not present. | 1649 | or standard output if not specified. |
| 1644 | The output filename should | 1650 | .It Fl outform Cm der | pem |
| 1645 | .Em not | 1651 | The output format. |
| 1646 | be the same as the input filename. | ||
| 1647 | .It Fl outform Ar DER | PEM | ||
| 1648 | Specify the output format; | ||
| 1649 | the parameters have the same meaning as the | ||
| 1650 | .Fl inform | ||
| 1651 | option. | ||
| 1652 | .It Fl param_enc Ar arg | 1652 | .It Fl param_enc Ar arg |
| 1653 | This specifies how the elliptic curve parameters are encoded. | 1653 | Specify how the elliptic curve parameters are encoded. |
| 1654 | Possible value are: | 1654 | Possible value are: |
| 1655 | .Cm named_curve , | 1655 | .Cm named_curve , |
| 1656 | i.e. the EC parameters are specified by an OID, or | 1656 | i.e. the EC parameters are specified by an OID, or |
| @@ -1662,62 +1662,10 @@ The default value is | |||
| 1662 | Note: the | 1662 | Note: the |
| 1663 | .Cm implicitlyCA | 1663 | .Cm implicitlyCA |
| 1664 | alternative, as specified in RFC 3279, | 1664 | alternative, as specified in RFC 3279, |
| 1665 | is currently not implemented in | 1665 | is currently not implemented. |
| 1666 | .Nm OpenSSL . | ||
| 1667 | .It Fl text | 1666 | .It Fl text |
| 1668 | Print out the EC parameters in human readable form. | 1667 | Print the EC parameters in human readable form. |
| 1669 | .El | 1668 | .El |
| 1670 | .Sh ECPARAM NOTES | ||
| 1671 | PEM 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 | ||
| 1678 | is currently not able to generate new groups and therefore | ||
| 1679 | .Nm ecparam | ||
| 1680 | can only create EC parameters from known (named) curves. | ||
| 1681 | .Sh ECPARAM EXAMPLES | ||
| 1682 | To 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 | ||
| 1687 | To 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 | ||
| 1693 | To validate given EC parameters: | ||
| 1694 | .Bd -literal -offset indent | ||
| 1695 | $ openssl ecparam -in ec_param.pem -check | ||
| 1696 | .Ed | ||
| 1697 | .Pp | ||
| 1698 | To 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 | ||
| 1703 | To 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 | ||
| 1709 | To 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 | ||
| 1714 | The | ||
| 1715 | .Nm ecparam | ||
| 1716 | command was first introduced in | ||
| 1717 | .Nm OpenSSL | ||
| 1718 | 0.9.8. | ||
| 1719 | .Sh ECPARAM AUTHORS | ||
| 1720 | .An Nils Larsch . | ||
| 1721 | .\" | 1669 | .\" |
| 1722 | .\" ENC | 1670 | .\" ENC |
| 1723 | .\" | 1671 | .\" |
