{
    "mode": "man",
    "parameter": "OPENSSL-SESS_ID",
    "section": "1SSL",
    "url": "https://www.chedong.com/phpMan.php/man/OPENSSL-SESS_ID/1SSL/json",
    "generated": "2026-10-22T13:42:26Z",
    "synopsis": "openssl sessid [-help] [-inform DER|PEM] [-outform DER|PEM|NSS] [-in filename] [-out\nfilename] [-text] [-cert] [-noout] [-context ID]",
    "sections": {
        "NAME": {
            "content": "openssl-sessid - SSL/TLS session handling command\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "openssl sessid [-help] [-inform DER|PEM] [-outform DER|PEM|NSS] [-in filename] [-out\nfilename] [-text] [-cert] [-noout] [-context ID]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This command processes the encoded version of the SSL session structure and optionally prints\nout SSL session details (for example the SSL session master key) in human readable format.\nSince this is a diagnostic tool that needs some knowledge of the SSL protocol to use\nproperly, most users will not need to use it.\n\nThe precise format of the data can vary across OpenSSL versions and is not documented.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-help",
                    "content": "Print out a usage message.\n"
                },
                {
                    "name": "-inform DER -outform DER",
                    "content": "The  input  and  output  formats;  the default is PEM.  See openssl-format-options(1) for\ndetails.\n\nFor NSS output, the session ID and master key are reported in NSS \"keylog\" format.\n"
                },
                {
                    "name": "-in _",
                    "content": "This specifies the input filename to read session information from or standard  input  by\ndefault.\n"
                },
                {
                    "name": "-out _",
                    "content": "This  specifies the output filename to write session information to or standard output if\nthis option is not specified.\n"
                },
                {
                    "name": "-text",
                    "content": "Prints out the various public or private key components in plain text in addition to  the\nencoded version.\n"
                },
                {
                    "name": "-cert",
                    "content": "If  a  certificate  is present in the session it will be output using this option, if the\n-text option is also present then it will be printed out in text form.\n"
                },
                {
                    "name": "-noout",
                    "content": "This option prevents output of the encoded version of the session.\n"
                },
                {
                    "name": "-context _",
                    "content": "This option can set the session id so the output session information  uses  the  supplied\nID. The ID can be any string of characters. This option won't normally be used.\n"
                }
            ]
        },
        "OUTPUT": {
            "content": "Typical output:\n\nSSL-Session:\nProtocol  : TLSv1\nCipher    : 0016\nSession-ID: 871E62626C554CE95488823752CBD5F3673A3EF3DCE9C67BD916C809914B40ED\nSession-ID-ctx: 01000000\nMaster-Key: A7CEFC571974BE02CAC305269DC59F76EA9F0B180CB6642697A68251F2D2BB57E51DBBB4C7885573192AE9AEE220FACD\nKey-Arg   : None\nStart Time: 948459261\nTimeout   : 300 (sec)\nVerify return code 0 (ok)\n\nThese are described below in more detail.\n",
            "subsections": [
                {
                    "name": "Protocol",
                    "content": "This is the protocol in use TLSv1.3, TLSv1.2, TLSv1.1, TLSv1 or SSLv3.\n"
                },
                {
                    "name": "Cipher",
                    "content": "The  cipher  used  this  is  the  actual  raw  SSL or TLS cipher code, see the SSL or TLS\nspecifications for more information.\n"
                },
                {
                    "name": "Session-ID",
                    "content": "The SSL session ID in hex format.\n"
                },
                {
                    "name": "Session-ID-ctx",
                    "content": "The session ID context in hex format.\n"
                },
                {
                    "name": "Master-Key",
                    "content": "This is the SSL session master key.\n"
                },
                {
                    "name": "Start Time",
                    "content": "This is the session start time represented as an integer in standard Unix format.\n"
                },
                {
                    "name": "Timeout",
                    "content": "The timeout in seconds.\n"
                },
                {
                    "name": "Verify return code",
                    "content": "This is the return code when an SSL client certificate is verified.\n"
                }
            ]
        },
        "NOTES": {
            "content": "Since the SSL session output contains the master key it is possible to read the  contents  of\nan  encrypted  session  using  this  information. Therefore, appropriate security precautions\nshould be taken if the information is being output by a \"real\" application. This  is  however\nstrongly discouraged and should only be used for debugging purposes.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The cipher and start time should be printed out in human readable form.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "openssl(1), openssl-ciphers(1), openssl-sserver(1)\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed  under  the Apache License 2.0 (the \"License\").  You may not use this file except in\ncompliance with the License.  You can obtain a  copy  in  the  file  LICENSE  in  the  source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n3.0.13                                       2026-07-29                        OPENSSL-SESSID(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-sessid - SSL/TLS session handling command",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print out a usage message."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The input and output formats; the default is PEM. See openssl-format-options(1) for details. For NSS output, the session ID and master key are reported in NSS \"keylog\" format."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This specifies the input filename to read session information from or standard input by default."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This specifies the output filename to write session information to or standard output if this option is not specified."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prints out the various public or private key components in plain text in addition to the encoded version."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "If a certificate is present in the session it will be output using this option, if the -text option is also present then it will be printed out in text form."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option prevents output of the encoded version of the session."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option can set the session id so the output session information uses the supplied ID. The ID can be any string of characters. This option won't normally be used."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "openssl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl/1/json"
        },
        {
            "name": "openssl-ciphers",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-ciphers/1/json"
        },
        {
            "name": "openssl-sserver",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-sserver/1/json"
        }
    ]
}