1OPENSSL-SESS_ID(1ossl)              OpenSSL             OPENSSL-SESS_ID(1ossl)
2
3
4

NAME

6       openssl-sess_id - SSL/TLS session handling command
7

SYNOPSIS

9       openssl sess_id [-help] [-inform DER|PEM] [-outform DER|PEM|NSS] [-in
10       filename] [-out filename] [-text] [-cert] [-noout] [-context ID]
11

DESCRIPTION

13       This command processes the encoded version of the SSL session structure
14       and optionally prints out SSL session details (for example the SSL
15       session master key) in human readable format. Since this is a
16       diagnostic tool that needs some knowledge of the SSL protocol to use
17       properly, most users will not need to use it.
18
19       The precise format of the data can vary across OpenSSL versions and is
20       not documented.
21

OPTIONS

23       -help
24           Print out a usage message.
25
26       -inform DER|PEM, -outform DER|PEM|NSS
27           The input and output formats; the default is PEM.  See
28           openssl-format-options(1) for details.
29
30           For NSS output, the session ID and master key are reported in NSS
31           "keylog" format.
32
33       -in filename
34           This specifies the input filename to read session information from
35           or standard input by default.
36
37       -out filename
38           This specifies the output filename to write session information to
39           or standard output if this option is not specified.
40
41       -text
42           Prints out the various public or private key components in plain
43           text in addition to the encoded version.
44
45       -cert
46           If a certificate is present in the session it will be output using
47           this option, if the -text option is also present then it will be
48           printed out in text form.
49
50       -noout
51           This option prevents output of the encoded version of the session.
52
53       -context ID
54           This option can set the session id so the output session
55           information uses the supplied ID. The ID can be any string of
56           characters. This option won't normally be used.
57

OUTPUT

59       Typical output:
60
61        SSL-Session:
62            Protocol  : TLSv1
63            Cipher    : 0016
64            Session-ID: 871E62626C554CE95488823752CBD5F3673A3EF3DCE9C67BD916C809914B40ED
65            Session-ID-ctx: 01000000
66            Master-Key: A7CEFC571974BE02CAC305269DC59F76EA9F0B180CB6642697A68251F2D2BB57E51DBBB4C7885573192AE9AEE220FACD
67            Key-Arg   : None
68            Start Time: 948459261
69            Timeout   : 300 (sec)
70            Verify return code 0 (ok)
71
72       These are described below in more detail.
73
74       Protocol
75           This is the protocol in use TLSv1.3, TLSv1.2, TLSv1.1, TLSv1 or
76           SSLv3.
77
78       Cipher
79           The cipher used this is the actual raw SSL or TLS cipher code, see
80           the SSL or TLS specifications for more information.
81
82       Session-ID
83           The SSL session ID in hex format.
84
85       Session-ID-ctx
86           The session ID context in hex format.
87
88       Master-Key
89           This is the SSL session master key.
90
91       Start Time
92           This is the session start time represented as an integer in
93           standard Unix format.
94
95       Timeout
96           The timeout in seconds.
97
98       Verify return code
99           This is the return code when an SSL client certificate is verified.
100

NOTES

102       Since the SSL session output contains the master key it is possible to
103       read the contents of an encrypted session using this information.
104       Therefore, appropriate security precautions should be taken if the
105       information is being output by a "real" application. This is however
106       strongly discouraged and should only be used for debugging purposes.
107

BUGS

109       The cipher and start time should be printed out in human readable form.
110

SEE ALSO

112       openssl(1), openssl-ciphers(1), openssl-s_server(1)
113
115       Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
116
117       Licensed under the Apache License 2.0 (the "License").  You may not use
118       this file except in compliance with the License.  You can obtain a copy
119       in the file LICENSE in the source distribution or at
120       <https://www.openssl.org/source/license.html>.
121
122
123
1243.0.9                             2023-07-27            OPENSSL-SESS_ID(1ossl)
Impressum