summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2003-12-29 13:44:43 +0000
committerjmc <>2003-12-29 13:44:43 +0000
commita4e0b6e6e2f17d789d08372954d6335a87ed59af (patch)
tree28c20f75dd335d175e669d047487ebab02b3422d
parent6ce8ea96efa17acf7e15c5870d98374d2f856447 (diff)
downloadopenbsd-a4e0b6e6e2f17d789d08372954d6335a87ed59af.tar.gz
openbsd-a4e0b6e6e2f17d789d08372954d6335a87ed59af.tar.bz2
openbsd-a4e0b6e6e2f17d789d08372954d6335a87ed59af.zip
updates for openssl gen{d,r}sa:
- sort options - document "-out filename" for gendsa - typos and grammar
-rw-r--r--src/usr.sbin/openssl/openssl.1106
1 files changed, 55 insertions, 51 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1
index 2849c4ec22..a5f14ee735 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.27 2003/12/21 15:00:41 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.28 2003/12/29 13:44:43 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.\"
@@ -2783,13 +2783,13 @@ above.
2783.Sh GENDSA 2783.Sh GENDSA
2784.Nm openssl gendsa 2784.Nm openssl gendsa
2785.Bk -words 2785.Bk -words
2786.Op Fl out Ar filename
2787.Op Fl rand Ar file ...
2788.Op Fl engine Ar id
2789.Oo 2786.Oo
2790.Fl des | des3 | aes128 | 2787.Fl aes128 | aes192 | aes256 |
2791.Fl aes192 | aes256 2788.Fl des | des3
2792.Oc 2789.Oc
2790.Op Fl engine Ar id
2791.Op Fl out Ar filename
2792.Op Fl rand Ar file ...
2793.Op Ar paramfile 2793.Op Ar paramfile
2794.Ek 2794.Ek
2795.Pp 2795.Pp
@@ -2803,19 +2803,13 @@ command).
2803The options are as follows: 2803The options are as follows:
2804.Bl -tag -width "XXXX" 2804.Bl -tag -width "XXXX"
2805.It Xo 2805.It Xo
2806.Fl des | des3 | aes128 | 2806.Fl aes128 | aes192 | aes256 |
2807.Fl aes192 | aes256 2807.Fl des | des3
2808.Xc 2808.Xc
2809These options encrypt the private key with the DES, triple DES, 2809These options encrypt the private key with the AES, DES,
2810or the AES ciphers, respectively, before outputting it. 2810or the triple DES ciphers, respectively, before outputting it.
2811A pass phrase is prompted for. 2811A pass phrase is prompted for.
2812If none of these options is specified, no encryption is used. 2812If none of these options are specified, no encryption is used.
2813.It Fl rand Ar file ...
2814A file or files containing random data used to seed the random number
2815generator, or an EGD socket (see
2816.Xr RAND_egd 3 ) .
2817Multiple files can be specified separated by a
2818.Sq \&: .
2819.It Fl engine Ar id 2813.It Fl engine Ar id
2820Specifying an engine (by it's unique 2814Specifying an engine (by it's unique
2821.Ar id 2815.Ar id
@@ -2824,16 +2818,26 @@ string) will cause
2824to attempt to obtain a functional reference to the specified engine, 2818to attempt to obtain a functional reference to the specified engine,
2825thus initialising it if needed. 2819thus initialising it if needed.
2826The engine will then be set as the default for all available algorithms. 2820The engine will then be set as the default for all available algorithms.
2821.It Fl out Ar filename
2822The output
2823.Ar filename .
2824If this argument is not specified, standard output is used.
2827.It Ar paramfile 2825.It Ar paramfile
2828This option specifies the DSA parameter file to use. 2826This option specifies the DSA parameter file to use.
2829The parameters in this file determine the size of the private key. 2827The parameters in this file determine the size of the private key.
2830DSA parameters can be generated and examined using the 2828DSA parameters can be generated and examined using the
2831.Nm openssl dsaparam 2829.Nm openssl dsaparam
2832command. 2830command.
2831.It Fl rand Ar file ...
2832A file or files containing random data used to seed the random number
2833generator, or an EGD socket (see
2834.Xr RAND_egd 3 ) .
2835Multiple files can be specified separated by a
2836.Sq \&: .
2833.El 2837.El
2834.Sh GENDSA NOTES 2838.Sh GENDSA NOTES
2835DSA key generation is little more than random number generation so it is 2839DSA key generation is little more than random number generation so it is
2836much quicker that RSA key generation for example. 2840much quicker than RSA key generation, for example.
2837.\" 2841.\"
2838.\" GENRSA 2842.\" GENRSA
2839.\" 2843.\"
@@ -2841,14 +2845,14 @@ much quicker that RSA key generation for example.
2841.Nm openssl genrsa 2845.Nm openssl genrsa
2842.Bk -words 2846.Bk -words
2843.Oo 2847.Oo
2844.Fl des | des3 | aes128 | 2848.Fl aes128 | aes192 | aes256 |
2845.Fl aes192 | aes256 2849.Fl des | des3
2846.Oc 2850.Oc
2851.Op Fl engine Ar id
2852.Op Fl 3 | f4
2847.Op Fl out Ar filename 2853.Op Fl out Ar filename
2848.Op Fl passout Ar arg 2854.Op Fl passout Ar arg
2849.Op Fl f4 | 3
2850.Op Fl rand Ar file ... 2855.Op Fl rand Ar file ...
2851.Op Fl engine Ar id
2852.Op Ar numbits 2856.Op Ar numbits
2853.Ek 2857.Ek
2854.Pp 2858.Pp
@@ -2858,38 +2862,17 @@ command generates an RSA private key.
2858.Pp 2862.Pp
2859The options are as follows: 2863The options are as follows:
2860.Bl -tag -width "XXXX" 2864.Bl -tag -width "XXXX"
2861.It Fl out Ar filename
2862The output
2863.Ar filename .
2864If this argument is not specified then standard output is used.
2865.It Fl passout Ar arg
2866The output file password source.
2867For more information about the format of
2868.Ar arg ,
2869see the
2870.Sx PASS PHRASE ARGUMENTS
2871section above.
2872.It Xo 2865.It Xo
2873.Fl des | des3 | aes128 | 2866.Fl aes128 | aes192 | aes256 |
2874.Fl aes192 | aes256 2867.Fl des | des3
2875.Xc 2868.Xc
2876These options encrypt the private key with the DES, triple DES, or the 2869These options encrypt the private key with the AES, DES,
2877AES ciphers, respectively, before outputting it. 2870or the triple DES ciphers, respectively, before outputting it.
2878If none of these options is specified, no encryption is used. 2871If none of these options are specified, no encryption is used.
2879If encryption is used a pass phrase is prompted for, 2872If encryption is used, a pass phrase is prompted for,
2880if it is not supplied via the 2873if it is not supplied via the
2881.Fl passout 2874.Fl passout
2882option. 2875option.
2883.It Fl F4 | 3
2884The public exponent to use, either 65537 or 3.
2885The default is 65537.
2886.It Fl rand Ar file ...
2887A file or files
2888containing random data used to seed the random number
2889generator, or an EGD socket (see
2890.Xr RAND_egd 3 ) .
2891Multiple files can be specified separated by a
2892.Sq \&: .
2893.It Fl engine Ar id 2876.It Fl engine Ar id
2894Specifying an engine (by it's unique 2877Specifying an engine (by it's unique
2895.Ar id 2878.Ar id
@@ -2898,10 +2881,31 @@ string) will cause
2898to attempt to obtain a functional reference to the specified engine, 2881to attempt to obtain a functional reference to the specified engine,
2899thus initialising it if needed. 2882thus initialising it if needed.
2900The engine will then be set as the default for all available algorithms. 2883The engine will then be set as the default for all available algorithms.
2884.It Fl 3 | f4
2885The public exponent to use, either 3 or 65537.
2886The default is 65537.
2901.It Ar numbits 2887.It Ar numbits
2902The size of the private key to generate in bits. 2888The size of the private key to generate in bits.
2903This must be the last option specified. 2889This must be the last option specified.
2904The default is 512. 2890The default is 512.
2891.It Fl out Ar filename
2892The output
2893.Ar filename .
2894If this argument is not specified, standard output is used.
2895.It Fl passout Ar arg
2896The output file password source.
2897For more information about the format of
2898.Ar arg ,
2899see the
2900.Sx PASS PHRASE ARGUMENTS
2901section above.
2902.It Fl rand Ar file ...
2903A file or files
2904containing random data used to seed the random number
2905generator, or an EGD socket (see
2906.Xr RAND_egd 3 ) .
2907Multiple files can be specified separated by a
2908.Sq \&: .
2905.El 2909.El
2906.Sh GENRSA NOTES 2910.Sh GENRSA NOTES
2907RSA private key generation essentially involves the generation of two prime 2911RSA private key generation essentially involves the generation of two prime
@@ -2916,8 +2920,8 @@ means a number has passed a single round of the Miller-Rabin primality test.
2916A newline means that the number has passed all the prime tests 2920A newline means that the number has passed all the prime tests
2917.Pq the actual number depends on the key size . 2921.Pq the actual number depends on the key size .
2918.Pp 2922.Pp
2919Because key generation is a random process the time taken to generate a key 2923Because key generation is a random process,
2920may vary somewhat. 2924the time taken to generate a key may vary somewhat.
2921.Sh GENRSA BUGS 2925.Sh GENRSA BUGS
2922A quirk of the prime generation algorithm is that it cannot generate small 2926A quirk of the prime generation algorithm is that it cannot generate small
2923primes. 2927primes.