diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.sbin/openssl/openssl.1 | 60 |
1 files changed, 54 insertions, 6 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1 index ce075f1300..688df9d8c5 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.75 2010/10/12 18:36:03 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.76 2010/10/13 15:38:56 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: October 12 2010 $ | 115 | .Dd $Mdocdate: October 13 2010 $ |
| 116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
| 117 | .Os | 117 | .Os |
| 118 | .Sh NAME | 118 | .Sh NAME |
| @@ -318,6 +318,8 @@ PKCS#8 data management. | |||
| 318 | PKCS#12 data management. | 318 | PKCS#12 data management. |
| 319 | .It Cm pkey | 319 | .It Cm pkey |
| 320 | Public and private key management. | 320 | Public and private key management. |
| 321 | .It Cm pkeyparam | ||
| 322 | Public key algorithm parameter management. | ||
| 321 | .It Cm pkeyutl | 323 | .It Cm pkeyutl |
| 322 | Public key algorithm cryptographic operation utility. | 324 | Public key algorithm cryptographic operation utility. |
| 323 | .It Cm rand | 325 | .It Cm rand |
| @@ -5034,9 +5036,9 @@ $ openssl -in keycerts.pem -export -name "My PKCS#12 file" \e | |||
| 5034 | .Op Fl text | 5036 | .Op Fl text |
| 5035 | .Op Fl text_pub | 5037 | .Op Fl text_pub |
| 5036 | .Op Fl engine Ar id | 5038 | .Op Fl engine Ar id |
| 5037 | .Op Fl in Ar filename | 5039 | .Op Fl in Ar file |
| 5038 | .Op Fl inform Ar DER | PEM | 5040 | .Op Fl inform Ar DER | PEM |
| 5039 | .Op Fl out Ar filename | 5041 | .Op Fl out Ar file |
| 5040 | .Op Fl outform Ar DER | PEM | 5042 | .Op Fl outform Ar DER | PEM |
| 5041 | .Op Fl passin Ar arg | 5043 | .Op Fl passin Ar arg |
| 5042 | .Op Fl passout Ar arg | 5044 | .Op Fl passout Ar arg |
| @@ -5065,7 +5067,7 @@ to attempt to obtain a functional reference to the specified engine, | |||
| 5065 | thus initialising it if needed. | 5067 | thus initialising it if needed. |
| 5066 | The engine will then be set as the default | 5068 | The engine will then be set as the default |
| 5067 | for all available algorithms. | 5069 | for all available algorithms. |
| 5068 | .It Fl in Ar filename | 5070 | .It Fl in Ar file |
| 5069 | This specifies the input filename to read a key from, | 5071 | This specifies the input filename to read a key from, |
| 5070 | or standard input if this option is not specified. | 5072 | or standard input if this option is not specified. |
| 5071 | If the key is encrypted a pass phrase will be prompted for. | 5073 | If the key is encrypted a pass phrase will be prompted for. |
| @@ -5073,7 +5075,7 @@ If the key is encrypted a pass phrase will be prompted for. | |||
| 5073 | This specifies the input format, DER or PEM. | 5075 | This specifies the input format, DER or PEM. |
| 5074 | .It Fl noout | 5076 | .It Fl noout |
| 5075 | Do not output the encoded version of the key. | 5077 | Do not output the encoded version of the key. |
| 5076 | .It Fl out Ar filename | 5078 | .It Fl out Ar file |
| 5077 | This specifies the output filename to write a key to, | 5079 | This specifies the output filename to write a key to, |
| 5078 | or standard output if this option is not specified. | 5080 | or standard output if this option is not specified. |
| 5079 | If any encryption options are set then a pass phrase | 5081 | If any encryption options are set then a pass phrase |
| @@ -5146,6 +5148,52 @@ To just output the public part of a private key: | |||
| 5146 | $ openssl pkey -in key.pem -pubout -out pubkey.pem | 5148 | $ openssl pkey -in key.pem -pubout -out pubkey.pem |
| 5147 | .Ed | 5149 | .Ed |
| 5148 | .\" | 5150 | .\" |
| 5151 | .\" PKEYPARAM | ||
| 5152 | .\" | ||
| 5153 | .Sh PKEYPARAM | ||
| 5154 | .Cm openssl pkeyparam | ||
| 5155 | .Op Fl noout | ||
| 5156 | .Op Fl text | ||
| 5157 | .Op Fl engine Ar id | ||
| 5158 | .Op Fl in Ar file | ||
| 5159 | .Op Fl out Ar file | ||
| 5160 | .Pp | ||
| 5161 | The | ||
| 5162 | .Nm pkey | ||
| 5163 | command processes public or private keys. | ||
| 5164 | They can be converted between various forms and their components printed out. | ||
| 5165 | .Pp | ||
| 5166 | The options are as follows: | ||
| 5167 | .Bl -tag -width Ds | ||
| 5168 | .It Fl engine Ar id | ||
| 5169 | Specifying an engine (by its unique | ||
| 5170 | .Ar id | ||
| 5171 | string) will cause | ||
| 5172 | .Nm pkeyparam | ||
| 5173 | to attempt to obtain a functional reference to the specified engine, | ||
| 5174 | thus initialising it if needed. | ||
| 5175 | The engine will then be set as the default | ||
| 5176 | for all available algorithms. | ||
| 5177 | .It Fl in Ar file | ||
| 5178 | This specifies the input filename to read parameters from, | ||
| 5179 | or standard input if this option is not specified. | ||
| 5180 | .It Fl noout | ||
| 5181 | Do not output the encoded version of the parameters. | ||
| 5182 | .It Fl out Ar file | ||
| 5183 | This specifies the output filename to write parameters to, | ||
| 5184 | or standard output if this option is not specified. | ||
| 5185 | .It Fl text | ||
| 5186 | Prints out the parameters in plain text in addition to the encoded version. | ||
| 5187 | .El | ||
| 5188 | .Sh PKEYPARAM EXAMPLES | ||
| 5189 | Print out text version of parameters: | ||
| 5190 | .Bd -literal -offset indent | ||
| 5191 | $ openssl pkeyparam -in param.pem -text | ||
| 5192 | .Ed | ||
| 5193 | .Sh PKEYPARAM NOTES | ||
| 5194 | There are no B<-inform> or B<-outform> options for this command because only | ||
| 5195 | PEM format is supported because the key type is determined by the PEM headers. | ||
| 5196 | .\" | ||
| 5149 | .\" PKEYUTL | 5197 | .\" PKEYUTL |
| 5150 | .\" | 5198 | .\" |
| 5151 | .Sh PKEYUTL | 5199 | .Sh PKEYUTL |
