summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.bin/openssl/openssl.1116
1 files changed, 32 insertions, 84 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index acee5d3bb3..ee384aa20f 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.43 2016/08/01 07:23:29 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.44 2016/08/03 06:43:21 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 1 2016 $ 115.Dd $Mdocdate: August 3 2016 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -1170,47 +1170,44 @@ or
1170File or files to digest. 1170File or files to digest.
1171If no files are specified then standard input is used. 1171If no files are specified then standard input is used.
1172.El 1172.El
1173.\"
1174.\" DHPARAM
1175.\"
1176.Sh DHPARAM 1173.Sh DHPARAM
1177.nr nS 1 1174.nr nS 1
1178.Nm "openssl dhparam" 1175.Nm "openssl dhparam"
1179.Bk -words
1180.Op Fl 2 | 5 1176.Op Fl 2 | 5
1181.Op Fl C 1177.Op Fl C
1182.Op Fl check 1178.Op Fl check
1183.Op Fl dsaparam 1179.Op Fl dsaparam
1184.Op Fl in Ar file 1180.Op Fl in Ar file
1185.Op Fl inform Ar DER | PEM 1181.Op Fl inform Cm der | pem
1186.Op Fl noout 1182.Op Fl noout
1187.Op Fl out Ar file 1183.Op Fl out Ar file
1188.Op Fl outform Ar DER | PEM 1184.Op Fl outform Cm der | pem
1189.Op Fl text 1185.Op Fl text
1190.Op Ar numbits 1186.Op Ar numbits
1191.Ek
1192.nr nS 0 1187.nr nS 0
1193.Pp 1188.Pp
1194The 1189The
1195.Nm dhparam 1190.Nm dhparam
1196command is used to manipulate DH parameter files. 1191command is used to manipulate DH parameter files.
1192Only the older PKCS#3 DH is supported,
1193not the newer X9.42 DH.
1197.Pp 1194.Pp
1198The options are as follows: 1195The options are as follows:
1199.Bl -tag -width Ds 1196.Bl -tag -width Ds
1200.It Fl 2 , 5 1197.It Fl 2 , 5
1201The generator to use, either 2 or 5. 1198The generator to use;
12022 is the default. 11992 is the default.
1203If present, the input file is ignored and parameters are generated instead. 1200If present, the input file is ignored and parameters are generated instead.
1204.It Fl C 1201.It Fl C
1205This option converts the parameters into C code. 1202Convert the parameters into C code.
1206The parameters can then be loaded by calling the 1203The parameters can then be loaded by calling the
1207.Cm get_dh Ns Ar numbits Ns Li () 1204.No get_dh Ns Ar numbits
1208function. 1205function.
1209.It Fl check 1206.It Fl check
1210Check the DH parameters. 1207Check the DH parameters.
1211.It Fl dsaparam 1208.It Fl dsaparam
1212If this option is used, DSA rather than DH parameters are read or created; 1209Read or create DSA parameters,
1213they are converted to DH format. 1210converted to DH format on output.
1214Otherwise, 1211Otherwise,
1215.Qq strong 1212.Qq strong
1216primes 1213primes
@@ -1226,87 +1223,38 @@ Beware that with such DSA-style DH parameters,
1226a fresh DH key should be created for each use to 1223a fresh DH key should be created for each use to
1227avoid small-subgroup attacks that may be possible otherwise. 1224avoid small-subgroup attacks that may be possible otherwise.
1228.It Fl in Ar file 1225.It Fl in Ar file
1229This specifies the input 1226The input file to read from,
1230.Ar file 1227or standard input if not specified.
1231to read parameters from, or standard input if this option is not specified. 1228.It Fl inform Cm der | pem
1232.It Fl inform Ar DER | PEM 1229The input format.
1233This specifies the input format. 1230.Cm der
1234The argument
1235.Ar DER
1236uses an ASN1 DER-encoded form compatible with the PKCS#3 DHparameter 1231uses an ASN1 DER-encoded form compatible with the PKCS#3 DHparameter
1237structure. 1232structure.
1238The 1233.Cm pem
1239.Ar PEM 1234is the default:
1240form is the default format:
1241it consists of the DER format base64-encoded with 1235it consists of the DER format base64-encoded with
1242additional header and footer lines. 1236additional header and footer lines:
1237.Bd -unfilled -offset indent
1238-----BEGIN DH PARAMETERS-----
1239-----END DH PARAMETERS-----
1240.Ed
1243.It Fl noout 1241.It Fl noout
1244This option inhibits the output of the encoded version of the parameters. 1242Inhibit the output of the encoded version of the parameters.
1243.It Fl out Ar file
1244The output file to write to,
1245or standard output if not specified.
1246.It Fl outform Cm der | pem
1247The output format.
1248.It Fl text
1249Print out the DH parameters in human readable form.
1245.It Ar numbits 1250.It Ar numbits
1246This argument specifies that a parameter set should be generated of size 1251Generate a parameter set of size
1247.Ar numbits . 1252.Ar numbits .
1248It must be the last option. 1253It must be the last option.
1249If not present, a value of 2048 is used. 1254If not present, a value of 2048 is used.
1250If this value is present, the input file is ignored and 1255If this value is present, the input file is ignored and
1251parameters are generated instead. 1256parameters are generated instead.
1252.It Fl out Ar file
1253This specifies the output
1254.Ar file
1255to write parameters to.
1256Standard output is used if this option is not present.
1257The output filename should
1258.Em not
1259be the same as the input filename.
1260.It Fl outform Ar DER | PEM
1261This specifies the output format; the options have the same meaning as the
1262.Fl inform
1263option.
1264.It Fl text
1265This option prints out the DH parameters in human readable form.
1266.El 1257.El
1267.Sh DHPARAM WARNINGS
1268The program
1269.Nm dhparam
1270combines the functionality of the programs
1271.Nm dh
1272and
1273.Nm gendh
1274in previous versions of
1275.Nm OpenSSL
1276and
1277.Nm SSLeay .
1278The
1279.Nm dh
1280and
1281.Nm gendh
1282programs are retained for now, but may have different purposes in future
1283versions of
1284.Nm OpenSSL .
1285.Sh DHPARAM NOTES
1286PEM format DH parameters use the header and footer lines:
1287.Bd -unfilled -offset indent
1288-----BEGIN DH PARAMETERS-----
1289-----END DH PARAMETERS-----
1290.Ed
1291.Pp
1292.Nm OpenSSL
1293currently only supports the older PKCS#3 DH,
1294not the newer X9.42 DH.
1295.Pp
1296This program manipulates DH parameters not keys.
1297.Sh DHPARAM BUGS
1298There should be a way to generate and manipulate DH keys.
1299.Sh DHPARAM HISTORY
1300The
1301.Nm dhparam
1302command was added in
1303.Nm OpenSSL
13040.9.5.
1305The
1306.Fl dsaparam
1307option was added in
1308.Nm OpenSSL
13090.9.6.
1310.\" 1258.\"
1311.\" DSA 1259.\" DSA
1312.\" 1260.\"