diff options
author | jmc <> | 2016-09-04 19:38:51 +0000 |
---|---|---|
committer | jmc <> | 2016-09-04 19:38:51 +0000 |
commit | e6d7fb7f586856bea803f78ddb27f172a26c2c6d (patch) | |
tree | 7516a1f0f340961355c7348103eb9f8ebc573941 | |
parent | d4115a7bda2f686541775a53540e759e516e8ee1 (diff) | |
download | openbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.tar.gz openbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.tar.bz2 openbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.zip |
shorten sess_id;
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 128 |
1 files changed, 44 insertions, 84 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index c116d84015..796e3e0057 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.68 2016/09/03 13:26:55 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.69 2016/09/04 19:38:51 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: September 3 2016 $ | 115 | .Dd $Mdocdate: September 4 2016 $ |
116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
117 | .Os | 117 | .Os |
118 | .Sh NAME | 118 | .Sh NAME |
@@ -4175,32 +4175,25 @@ If this parameter is not specified, | |||
4175 | will only perform the handshake to establish SSL connections | 4175 | will only perform the handshake to establish SSL connections |
4176 | but not transfer any payload data. | 4176 | but not transfer any payload data. |
4177 | .El | 4177 | .El |
4178 | .\" | ||
4179 | .\" SESS_ID | ||
4180 | .\" | ||
4181 | .Sh SESS_ID | 4178 | .Sh SESS_ID |
4182 | .nr nS 1 | 4179 | .nr nS 1 |
4183 | .Nm "openssl sess_id" | 4180 | .Nm "openssl sess_id" |
4184 | .Bk -words | ||
4185 | .Op Fl cert | 4181 | .Op Fl cert |
4186 | .Op Fl context Ar ID | 4182 | .Op Fl context Ar ID |
4187 | .Op Fl in Ar file | 4183 | .Op Fl in Ar file |
4188 | .Op Fl inform Ar DER | PEM | 4184 | .Op Fl inform Cm der | pem |
4189 | .Op Fl noout | 4185 | .Op Fl noout |
4190 | .Op Fl out Ar file | 4186 | .Op Fl out Ar file |
4191 | .Op Fl outform Ar DER | PEM | 4187 | .Op Fl outform Cm der | pem |
4192 | .Op Fl text | 4188 | .Op Fl text |
4193 | .Ek | ||
4194 | .nr nS 0 | 4189 | .nr nS 0 |
4195 | .Pp | 4190 | .Pp |
4196 | The | 4191 | The |
4197 | .Nm sess_id | 4192 | .Nm sess_id |
4198 | program processes the encoded version of the SSL session structure and | 4193 | program processes the encoded version of the SSL session structure and |
4199 | optionally prints out SSL session details | 4194 | optionally prints out SSL session details |
4200 | .Pq for example the SSL session master key | 4195 | (for example the SSL session master key) |
4201 | in human readable format. | 4196 | in human readable format. |
4202 | Since this is a diagnostic tool that needs some knowledge of the SSL | ||
4203 | protocol to use properly, most users will not need to use it. | ||
4204 | .Pp | 4197 | .Pp |
4205 | The options are as follows: | 4198 | The options are as follows: |
4206 | .Bl -tag -width Ds | 4199 | .Bl -tag -width Ds |
@@ -4211,89 +4204,58 @@ if the | |||
4211 | .Fl text | 4204 | .Fl text |
4212 | option is also present, then it will be printed out in text form. | 4205 | option is also present, then it will be printed out in text form. |
4213 | .It Fl context Ar ID | 4206 | .It Fl context Ar ID |
4214 | This option can set the session ID so the output session information uses the | 4207 | Set the session |
4215 | supplied | ||
4216 | .Ar ID . | 4208 | .Ar ID . |
4217 | The | 4209 | The ID can be any string of characters. |
4218 | .Ar ID | ||
4219 | can be any string of characters. | ||
4220 | This option won't normally be used. | ||
4221 | .It Fl in Ar file | 4210 | .It Fl in Ar file |
4222 | This specifies the input | 4211 | The input file to read from, |
4223 | .Ar file | 4212 | or standard input if not specified. |
4224 | to read session information from, or standard input by default. | 4213 | .It Fl inform Cm der | pem |
4225 | .It Fl inform Ar DER | PEM | 4214 | The input format. |
4226 | This specifies the input format. | 4215 | .Cm der |
4227 | The | 4216 | uses an ASN1 DER-encoded format containing session details. |
4228 | .Ar DER | ||
4229 | argument uses an ASN1 DER-encoded | ||
4230 | format containing session details. | ||
4231 | The precise format can vary from one version to the next. | 4217 | The precise format can vary from one version to the next. |
4232 | The | 4218 | .Cm pem |
4233 | .Ar PEM | 4219 | is the default format: it consists of the DER |
4234 | form is the default format: it consists of the DER | ||
4235 | format base64-encoded with additional header and footer lines. | 4220 | format base64-encoded with additional header and footer lines. |
4236 | .It Fl noout | 4221 | .It Fl noout |
4237 | This option prevents output of the encoded version of the session. | 4222 | Do not output the encoded version of the session. |
4238 | .It Fl out Ar file | 4223 | .It Fl out Ar file |
4239 | This specifies the output | 4224 | The output file to write to, |
4240 | .Ar file | 4225 | or standard output if not specified. |
4241 | to write session information to, or standard | 4226 | .It Fl outform Cm der | pem |
4242 | output if this option is not specified. | 4227 | The output format. |
4243 | .It Fl outform Ar DER | PEM | ||
4244 | This specifies the output format; the options have the same meaning as the | ||
4245 | .Fl inform | ||
4246 | option. | ||
4247 | .It Fl text | 4228 | .It Fl text |
4248 | Prints out the various public or private key components in | 4229 | Print the various public or private key components in plain text, |
4249 | plain text in addition to the encoded version. | 4230 | in addition to the encoded version. |
4250 | .El | 4231 | .El |
4251 | .Sh SESS_ID OUTPUT | ||
4252 | Typical output: | ||
4253 | .Bd -literal | ||
4254 | SSL-Session: | ||
4255 | Protocol : TLSv1 | ||
4256 | Cipher : 0016 | ||
4257 | Session-ID: 871E62626C554CE95488823752CBD5F3673A3EF3DCE9C67BD916C809914B40ED | ||
4258 | Session-ID-ctx: 01000000 | ||
4259 | Master-Key: A7CEFC571974BE02CAC305269DC59F76EA9F0B180CB6642697A68251F2D2BB57E51DBBB4C7885573192AE9AEE220FACD | ||
4260 | Key-Arg : None | ||
4261 | Start Time: 948459261 | ||
4262 | Timeout : 300 (sec) | ||
4263 | Verify return code 0 (ok) | ||
4264 | .Ed | ||
4265 | .Pp | 4232 | .Pp |
4266 | These are described below in more detail. | 4233 | The output of |
4267 | .Pp | 4234 | .Nm sess_id |
4268 | .Bl -tag -width "Verify return code " -compact | 4235 | is composed as follows: |
4269 | .It Ar Protocol | 4236 | .Pp |
4270 | This is the protocol in use. | 4237 | .Bl -tag -width "Verify return code " -offset 3n -compact |
4271 | .It Ar Cipher | 4238 | .It Protocol |
4272 | The cipher used is the actual raw SSL or TLS cipher code; | 4239 | The protocol in use. |
4273 | see the SSL or TLS specifications for more information. | 4240 | .It Cipher |
4274 | .It Ar Session-ID | 4241 | The actual raw SSL or TLS cipher code. |
4275 | The SSL session ID in hex format. | 4242 | .It Session-ID |
4276 | .It Ar Session-ID-ctx | 4243 | The SSL session ID, in hex format. |
4277 | The session ID context in hex format. | 4244 | .It Session-ID-ctx |
4278 | .It Ar Master-Key | 4245 | The session ID context, in hex format. |
4279 | This is the SSL session master key. | 4246 | .It Master-Key |
4280 | .It Ar Key-Arg | 4247 | The SSL session master key. |
4248 | .It Key-Arg | ||
4281 | The key argument; this is only used in SSL v2. | 4249 | The key argument; this is only used in SSL v2. |
4282 | .It Ar Start Time | 4250 | .It Start Time |
4283 | This is the session start time, represented as an integer in standard | 4251 | The session start time. |
4284 | .Ux | 4252 | .Ux |
4285 | format. | 4253 | format. |
4286 | .It Ar Timeout | 4254 | .It Timeout |
4287 | The timeout in seconds. | 4255 | The timeout, in seconds. |
4288 | .It Ar Verify return code | 4256 | .It Verify return code |
4289 | This is the return code when an SSL client certificate is verified. | 4257 | The return code when a certificate is verified. |
4290 | .El | 4258 | .El |
4291 | .Sh SESS_ID NOTES | ||
4292 | The PEM-encoded session format uses the header and footer lines: | ||
4293 | .Bd -unfilled -offset indent | ||
4294 | -----BEGIN SSL SESSION PARAMETERS----- | ||
4295 | -----END SSL SESSION PARAMETERS----- | ||
4296 | .Ed | ||
4297 | .Pp | 4259 | .Pp |
4298 | Since the SSL session output contains the master key, it is possible to read | 4260 | Since the SSL session output contains the master key, it is possible to read |
4299 | the contents of an encrypted session using this information. | 4261 | the contents of an encrypted session using this information. |
@@ -4303,8 +4265,6 @@ should be taken if the information is being output by a | |||
4303 | application. | 4265 | application. |
4304 | This is, however, strongly discouraged and should only be used for | 4266 | This is, however, strongly discouraged and should only be used for |
4305 | debugging purposes. | 4267 | debugging purposes. |
4306 | .Sh SESS_ID BUGS | ||
4307 | The cipher and start time should be printed out in human readable form. | ||
4308 | .\" | 4268 | .\" |
4309 | .\" SMIME | 4269 | .\" SMIME |
4310 | .\" | 4270 | .\" |