summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2016-09-04 19:38:51 +0000
committerjmc <>2016-09-04 19:38:51 +0000
commite6d7fb7f586856bea803f78ddb27f172a26c2c6d (patch)
tree7516a1f0f340961355c7348103eb9f8ebc573941
parentd4115a7bda2f686541775a53540e759e516e8ee1 (diff)
downloadopenbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.tar.gz
openbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.tar.bz2
openbsd-e6d7fb7f586856bea803f78ddb27f172a26c2c6d.zip
shorten sess_id;
-rw-r--r--src/usr.bin/openssl/openssl.1128
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,
4175will only perform the handshake to establish SSL connections 4175will only perform the handshake to establish SSL connections
4176but not transfer any payload data. 4176but 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
4196The 4191The
4197.Nm sess_id 4192.Nm sess_id
4198program processes the encoded version of the SSL session structure and 4193program processes the encoded version of the SSL session structure and
4199optionally prints out SSL session details 4194optionally prints out SSL session details
4200.Pq for example the SSL session master key 4195(for example the SSL session master key)
4201in human readable format. 4196in human readable format.
4202Since this is a diagnostic tool that needs some knowledge of the SSL
4203protocol to use properly, most users will not need to use it.
4204.Pp 4197.Pp
4205The options are as follows: 4198The 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
4212option is also present, then it will be printed out in text form. 4205option is also present, then it will be printed out in text form.
4213.It Fl context Ar ID 4206.It Fl context Ar ID
4214This option can set the session ID so the output session information uses the 4207Set the session
4215supplied
4216.Ar ID . 4208.Ar ID .
4217The 4209The ID can be any string of characters.
4218.Ar ID
4219can be any string of characters.
4220This option won't normally be used.
4221.It Fl in Ar file 4210.It Fl in Ar file
4222This specifies the input 4211The input file to read from,
4223.Ar file 4212or standard input if not specified.
4224to read session information from, or standard input by default. 4213.It Fl inform Cm der | pem
4225.It Fl inform Ar DER | PEM 4214The input format.
4226This specifies the input format. 4215.Cm der
4227The 4216uses an ASN1 DER-encoded format containing session details.
4228.Ar DER
4229argument uses an ASN1 DER-encoded
4230format containing session details.
4231The precise format can vary from one version to the next. 4217The precise format can vary from one version to the next.
4232The 4218.Cm pem
4233.Ar PEM 4219is the default format: it consists of the DER
4234form is the default format: it consists of the DER
4235format base64-encoded with additional header and footer lines. 4220format base64-encoded with additional header and footer lines.
4236.It Fl noout 4221.It Fl noout
4237This option prevents output of the encoded version of the session. 4222Do not output the encoded version of the session.
4238.It Fl out Ar file 4223.It Fl out Ar file
4239This specifies the output 4224The output file to write to,
4240.Ar file 4225or standard output if not specified.
4241to write session information to, or standard 4226.It Fl outform Cm der | pem
4242output if this option is not specified. 4227The output format.
4243.It Fl outform Ar DER | PEM
4244This specifies the output format; the options have the same meaning as the
4245.Fl inform
4246option.
4247.It Fl text 4228.It Fl text
4248Prints out the various public or private key components in 4229Print the various public or private key components in plain text,
4249plain text in addition to the encoded version. 4230in addition to the encoded version.
4250.El 4231.El
4251.Sh SESS_ID OUTPUT
4252Typical output:
4253.Bd -literal
4254SSL-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
4266These are described below in more detail. 4233The output of
4267.Pp 4234.Nm sess_id
4268.Bl -tag -width "Verify return code " -compact 4235is composed as follows:
4269.It Ar Protocol 4236.Pp
4270This is the protocol in use. 4237.Bl -tag -width "Verify return code " -offset 3n -compact
4271.It Ar Cipher 4238.It Protocol
4272The cipher used is the actual raw SSL or TLS cipher code; 4239The protocol in use.
4273see the SSL or TLS specifications for more information. 4240.It Cipher
4274.It Ar Session-ID 4241The actual raw SSL or TLS cipher code.
4275The SSL session ID in hex format. 4242.It Session-ID
4276.It Ar Session-ID-ctx 4243The SSL session ID, in hex format.
4277The session ID context in hex format. 4244.It Session-ID-ctx
4278.It Ar Master-Key 4245The session ID context, in hex format.
4279This is the SSL session master key. 4246.It Master-Key
4280.It Ar Key-Arg 4247The SSL session master key.
4248.It Key-Arg
4281The key argument; this is only used in SSL v2. 4249The key argument; this is only used in SSL v2.
4282.It Ar Start Time 4250.It Start Time
4283This is the session start time, represented as an integer in standard 4251The session start time.
4284.Ux 4252.Ux
4285format. 4253format.
4286.It Ar Timeout 4254.It Timeout
4287The timeout in seconds. 4255The timeout, in seconds.
4288.It Ar Verify return code 4256.It Verify return code
4289This is the return code when an SSL client certificate is verified. 4257The return code when a certificate is verified.
4290.El 4258.El
4291.Sh SESS_ID NOTES
4292The 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
4298Since the SSL session output contains the master key, it is possible to read 4260Since the SSL session output contains the master key, it is possible to read
4299the contents of an encrypted session using this information. 4261the contents of an encrypted session using this information.
@@ -4303,8 +4265,6 @@ should be taken if the information is being output by a
4303application. 4265application.
4304This is, however, strongly discouraged and should only be used for 4266This is, however, strongly discouraged and should only be used for
4305debugging purposes. 4267debugging purposes.
4306.Sh SESS_ID BUGS
4307The cipher and start time should be printed out in human readable form.
4308.\" 4268.\"
4309.\" SMIME 4269.\" SMIME
4310.\" 4270.\"