Home | History | Annotate | Line # | Download | only in man1
      1  1.1  christos =pod
      2  1.1  christos {- OpenSSL::safe::output_do_not_edit_headers(); -}
      3  1.1  christos 
      4  1.1  christos =head1 NAME
      5  1.1  christos 
      6  1.1  christos openssl-sess_id - SSL/TLS session handling command
      7  1.1  christos 
      8  1.1  christos =head1 SYNOPSIS
      9  1.1  christos 
     10  1.1  christos B<openssl> B<sess_id>
     11  1.1  christos [B<-help>]
     12  1.1  christos [B<-inform> B<DER>|B<PEM>]
     13  1.1  christos [B<-outform> B<DER>|B<PEM>|B<NSS>]
     14  1.1  christos [B<-in> I<filename>]
     15  1.1  christos [B<-out> I<filename>]
     16  1.1  christos [B<-text>]
     17  1.1  christos [B<-cert>]
     18  1.1  christos [B<-noout>]
     19  1.1  christos [B<-context> I<ID>]
     20  1.1  christos 
     21  1.1  christos =head1 DESCRIPTION
     22  1.1  christos 
     23  1.1  christos This command processes the encoded version of the SSL session
     24  1.1  christos structure and optionally prints out SSL session details (for example
     25  1.1  christos the SSL session master key) in human readable format. Since this is a
     26  1.1  christos diagnostic tool that needs some knowledge of the SSL protocol to use
     27  1.1  christos properly, most users will not need to use it.
     28  1.1  christos 
     29  1.1  christos The precise format of the data can vary across OpenSSL versions and
     30  1.1  christos is not documented.
     31  1.1  christos 
     32  1.1  christos =head1 OPTIONS
     33  1.1  christos 
     34  1.1  christos =over 4
     35  1.1  christos 
     36  1.1  christos =item B<-help>
     37  1.1  christos 
     38  1.1  christos Print out a usage message.
     39  1.1  christos 
     40  1.1  christos =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>|B<NSS>
     41  1.1  christos 
     42  1.1  christos The input and output formats; the default is PEM.
     43  1.1  christos See L<openssl-format-options(1)> for details.
     44  1.1  christos 
     45  1.1  christos For B<NSS> output, the session ID and master key are reported in NSS "keylog"
     46  1.1  christos format.
     47  1.1  christos 
     48  1.1  christos =item B<-in> I<filename>
     49  1.1  christos 
     50  1.1  christos This specifies the input filename to read session information from or standard
     51  1.1  christos input by default.
     52  1.1  christos 
     53  1.1  christos =item B<-out> I<filename>
     54  1.1  christos 
     55  1.1  christos This specifies the output filename to write session information to or standard
     56  1.1  christos output if this option is not specified.
     57  1.1  christos 
     58  1.1  christos =item B<-text>
     59  1.1  christos 
     60  1.1  christos Prints out the various public or private key components in
     61  1.1  christos plain text in addition to the encoded version.
     62  1.1  christos 
     63  1.1  christos =item B<-cert>
     64  1.1  christos 
     65  1.1  christos If a certificate is present in the session it will be output using this option,
     66  1.1  christos if the B<-text> option is also present then it will be printed out in text form.
     67  1.1  christos 
     68  1.1  christos =item B<-noout>
     69  1.1  christos 
     70  1.1  christos This option prevents output of the encoded version of the session.
     71  1.1  christos 
     72  1.1  christos =item B<-context> I<ID>
     73  1.1  christos 
     74  1.1  christos This option can set the session id so the output session information uses the
     75  1.1  christos supplied ID. The ID can be any string of characters. This option won't normally
     76  1.1  christos be used.
     77  1.1  christos 
     78  1.1  christos =back
     79  1.1  christos 
     80  1.1  christos =head1 OUTPUT
     81  1.1  christos 
     82  1.1  christos Typical output:
     83  1.1  christos 
     84  1.1  christos  SSL-Session:
     85  1.1  christos      Protocol  : TLSv1
     86  1.1  christos      Cipher    : 0016
     87  1.1  christos      Session-ID: 871E62626C554CE95488823752CBD5F3673A3EF3DCE9C67BD916C809914B40ED
     88  1.1  christos      Session-ID-ctx: 01000000
     89  1.1  christos      Master-Key: A7CEFC571974BE02CAC305269DC59F76EA9F0B180CB6642697A68251F2D2BB57E51DBBB4C7885573192AE9AEE220FACD
     90  1.1  christos      Key-Arg   : None
     91  1.1  christos      Start Time: 948459261
     92  1.1  christos      Timeout   : 300 (sec)
     93  1.1  christos      Verify return code 0 (ok)
     94  1.1  christos 
     95  1.1  christos These are described below in more detail.
     96  1.1  christos 
     97  1.1  christos =over 4
     98  1.1  christos 
     99  1.1  christos =item B<Protocol>
    100  1.1  christos 
    101  1.1  christos This is the protocol in use TLSv1.3, TLSv1.2, TLSv1.1, TLSv1 or SSLv3.
    102  1.1  christos 
    103  1.1  christos =item B<Cipher>
    104  1.1  christos 
    105  1.1  christos The cipher used this is the actual raw SSL or TLS cipher code, see the SSL
    106  1.1  christos or TLS specifications for more information.
    107  1.1  christos 
    108  1.1  christos =item B<Session-ID>
    109  1.1  christos 
    110  1.1  christos The SSL session ID in hex format.
    111  1.1  christos 
    112  1.1  christos =item B<Session-ID-ctx>
    113  1.1  christos 
    114  1.1  christos The session ID context in hex format.
    115  1.1  christos 
    116  1.1  christos =item B<Master-Key>
    117  1.1  christos 
    118  1.1  christos This is the SSL session master key.
    119  1.1  christos 
    120  1.1  christos =item B<Start Time>
    121  1.1  christos 
    122  1.1  christos This is the session start time represented as an integer in standard
    123  1.1  christos Unix format.
    124  1.1  christos 
    125  1.1  christos =item B<Timeout>
    126  1.1  christos 
    127  1.1  christos The timeout in seconds.
    128  1.1  christos 
    129  1.1  christos =item B<Verify return code>
    130  1.1  christos 
    131  1.1  christos This is the return code when an SSL client certificate is verified.
    132  1.1  christos 
    133  1.1  christos =back
    134  1.1  christos 
    135  1.1  christos =head1 NOTES
    136  1.1  christos 
    137  1.1  christos Since the SSL session output contains the master key it is
    138  1.1  christos possible to read the contents of an encrypted session using this
    139  1.1  christos information. Therefore, appropriate security precautions should be taken if
    140  1.1  christos the information is being output by a "real" application. This is however
    141  1.1  christos strongly discouraged and should only be used for debugging purposes.
    142  1.1  christos 
    143  1.1  christos =head1 BUGS
    144  1.1  christos 
    145  1.1  christos The cipher and start time should be printed out in human readable form.
    146  1.1  christos 
    147  1.1  christos =head1 SEE ALSO
    148  1.1  christos 
    149  1.1  christos L<openssl(1)>,
    150  1.1  christos L<openssl-ciphers(1)>,
    151  1.1  christos L<openssl-s_server(1)>
    152  1.1  christos 
    153  1.1  christos =head1 COPYRIGHT
    154  1.1  christos 
    155  1.1  christos Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
    156  1.1  christos 
    157  1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
    158  1.1  christos this file except in compliance with the License.  You can obtain a copy
    159  1.1  christos in the file LICENSE in the source distribution or at
    160  1.1  christos L<https://www.openssl.org/source/license.html>.
    161  1.1  christos 
    162  1.1  christos =cut
    163