summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.sbin/openssl/openssl.1112
1 files changed, 56 insertions, 56 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1
index 481bf32726..bfa12fe451 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.24 2003/11/26 21:17:17 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.25 2003/12/13 20:10:38 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.\"
@@ -2139,11 +2139,13 @@ option was added in
2139.Nm openssl dsa 2139.Nm openssl dsa
2140.Bk -words 2140.Bk -words
2141.Oo 2141.Oo
2142.Fl des | des3 | aes128 | aes192 | 2142.Fl aes128 | aes192 | aes256 |
2143.Fl aes256 2143.Fl des | des3
2144.Oc 2144.Oc
2145.Op Fl modulus 2145.Op Fl modulus
2146.Op Fl noout 2146.Op Fl noout
2147.Op Fl pubin
2148.Op Fl pubout
2147.Op Fl text 2149.Op Fl text
2148.Op Fl engine Ar id 2150.Op Fl engine Ar id
2149.Op Fl in Ar filename 2151.Op Fl in Ar filename
@@ -2152,8 +2154,6 @@ option was added in
2152.Op Fl outform Ar DER | PEM 2154.Op Fl outform Ar DER | PEM
2153.Op Fl passin Ar arg 2155.Op Fl passin Ar arg
2154.Op Fl passout Ar arg 2156.Op Fl passout Ar arg
2155.Op Fl pubin
2156.Op Fl pubout
2157.Ek 2157.Ek
2158.Pp 2158.Pp
2159The 2159The
@@ -2172,11 +2172,11 @@ command.
2172The options are as follows: 2172The options are as follows:
2173.Bl -tag -width "XXXX" 2173.Bl -tag -width "XXXX"
2174.It Xo 2174.It Xo
2175.Fl des | des3 | aes128 | 2175.Fl aes128 | aes192 | aes256 |
2176.Fl aes192 | aes256 2176.Fl des | des3
2177.Xc 2177.Xc
2178These options encrypt the private key with the DES, triple DES, or the 2178These options encrypt the private key with the AES, DES, or the triple DES
2179AES ciphers, respectively, before outputting it. 2179ciphers, respectively, before outputting it.
2180A pass phrase is prompted for. 2180A pass phrase is prompted for.
2181If none of these options is specified, the key is written in plain text. 2181If none of these options is specified, the key is written in plain text.
2182This means that using the 2182This means that using the
@@ -2209,7 +2209,7 @@ argument with a private key uses an ASN1 DER encoded form of an ASN.1
2209SEQUENCE consisting of the values of version 2209SEQUENCE consisting of the values of version
2210.Pq currently zero , 2210.Pq currently zero ,
2211P, Q, G, 2211P, Q, G,
2212the public and private key components, respectively, as ASN.1 INTEGERs. 2212and the public and private key components, respectively, as ASN.1 INTEGERs.
2213When used with a public key it uses a 2213When used with a public key it uses a
2214.Em SubjectPublicKeyInfo 2214.Em SubjectPublicKeyInfo
2215structure: it is an error if the key is not DSA. 2215structure: it is an error if the key is not DSA.
@@ -2217,7 +2217,7 @@ structure: it is an error if the key is not DSA.
2217The 2217The
2218.Ar PEM 2218.Ar PEM
2219form is the default format: 2219form is the default format:
2220It consists of the DER format base64 2220it consists of the DER format base64
2221encoded with additional header and footer lines. 2221encoded with additional header and footer lines.
2222In the case of a private key, PKCS#8 format is also accepted. 2222In the case of a private key, PKCS#8 format is also accepted.
2223.It Fl modulus 2223.It Fl modulus
@@ -2303,16 +2303,16 @@ To just output the public part of a private key:
2303.Sh DSAPARAM 2303.Sh DSAPARAM
2304.Nm openssl dsaparam 2304.Nm openssl dsaparam
2305.Bk -words 2305.Bk -words
2306.Op Fl inform Ar DER | PEM
2307.Op Fl outform Ar DER | PEM
2308.Op Fl in Ar filename
2309.Op Fl out Ar filename
2310.Op Fl noout
2311.Op Fl text
2312.Op Fl C 2306.Op Fl C
2313.Op Fl rand Ar file ...
2314.Op Fl genkey 2307.Op Fl genkey
2308.Op Fl noout
2309.Op Fl text
2315.Op Fl engine Ar id 2310.Op Fl engine Ar id
2311.Op Fl in Ar filename
2312.Op Fl inform Ar DER | PEM
2313.Op Fl out Ar filename
2314.Op Fl outform Ar DER | PEM
2315.Op Fl rand Ar file ...
2316.Op Ar numbits 2316.Op Ar numbits
2317.Ek 2317.Ek
2318.Pp 2318.Pp
@@ -2322,6 +2322,29 @@ command is used to manipulate or generate DSA parameter files.
2322.Pp 2322.Pp
2323The options are as follows: 2323The options are as follows:
2324.Bl -tag -width "XXXX" 2324.Bl -tag -width "XXXX"
2325.It Fl C
2326This option converts the parameters into C code.
2327The parameters can then be loaded by calling the
2328.Cm get_dsa Ns Ar XXX Ns Li ()
2329function.
2330.It Fl engine Ar id
2331Specifying an engine (by it's unique
2332.Ar id
2333string) will cause
2334.Nm dsaparam
2335to attempt to obtain a functional reference to the specified engine,
2336thus initialising it if needed.
2337The engine will then be set as the default for all available algorithms.
2338.It Fl genkey
2339This option will generate a DSA either using the specified or generated
2340parameters.
2341.It Fl in Ar filename
2342This specifies the input
2343.Ar filename
2344to read parameters from, or standard input if this option is not specified.
2345If the
2346.Ar numbits
2347parameter is included, then this option will be ignored.
2325.It Fl inform Ar DER | PEM 2348.It Fl inform Ar DER | PEM
2326This specifies the input format. 2349This specifies the input format.
2327The 2350The
@@ -2334,17 +2357,15 @@ The
2334form is the default format: 2357form is the default format:
2335it consists of the DER format base64 encoded with additional header 2358it consists of the DER format base64 encoded with additional header
2336and footer lines. 2359and footer lines.
2337.It Fl outform Ar DER | PEM 2360.It Fl noout
2338This specifies the output format; the options have the same meaning as the 2361This option inhibits the output of the encoded version of the parameters.
2339.Fl inform 2362.It Ar numbits
2340option. 2363This option specifies that a parameter set should be generated of size
2341.It Fl in Ar filename 2364.Ar numbits .
2342This specifies the input 2365It must be the last option.
2343.Ar filename 2366If this option is included, then the input file
2344to read parameters from, or standard input if this option is not specified. 2367.Pq if any
2345If the 2368is ignored.
2346.Ar numbits
2347parameter is included, then this option will be ignored.
2348.It Fl out Ar filename 2369.It Fl out Ar filename
2349This specifies the output 2370This specifies the output
2350.Ar filename 2371.Ar filename
@@ -2353,39 +2374,18 @@ Standard output is used if this option is not present.
2353The output filename should 2374The output filename should
2354.Em not 2375.Em not
2355be the same as the input filename. 2376be the same as the input filename.
2356.It Fl noout 2377.It Fl outform Ar DER | PEM
2357This option inhibits the output of the encoded version of the parameters. 2378This specifies the output format; the options have the same meaning as the
2358.It Fl text 2379.Fl inform
2359This option prints out the DSA parameters in human readable form. 2380option.
2360.It Fl C
2361This option converts the parameters into C code.
2362The parameters can then be loaded by calling the
2363.Cm get_dsa Ns Ar XXX Ns Li ()
2364function.
2365.It Fl genkey
2366This option will generate a DSA either using the specified or generated
2367parameters.
2368.It Fl rand Ar file ... 2381.It Fl rand Ar file ...
2369A file or files containing random data used to seed the random number 2382A file or files containing random data used to seed the random number
2370generator, or an EGD socket (see 2383generator, or an EGD socket (see
2371.Xr RAND_egd 3 ) . 2384.Xr RAND_egd 3 ) .
2372Multiple files can be specified, separated by a 2385Multiple files can be specified, separated by a
2373.Sq \&: . 2386.Sq \&: .
2374.It Ar numbits 2387.It Fl text
2375This option specifies that a parameter set should be generated of size 2388This option prints out the DSA parameters in human readable form.
2376.Ar numbits .
2377It must be the last option.
2378If this option is included, then the input file
2379.Pq if any
2380is ignored.
2381.It Fl engine Ar id
2382Specifying an engine (by it's unique
2383.Ar id
2384string) will cause
2385.Nm dsaparam
2386to attempt to obtain a functional reference to the specified engine,
2387thus initialising it if needed.
2388The engine will then be set as the default for all available algorithms.
2389.El 2389.El
2390.Sh DSAPARAM NOTES 2390.Sh DSAPARAM NOTES
2391.Ar PEM 2391.Ar PEM