{
    "content": [
        {
            "type": "text",
            "text": "# OPENSSL-SESS_ID (man)\n\n## NAME\n\nopenssl-sessid - SSL/TLS session handling command\n\n## SYNOPSIS\n\nopenssl sessid [-help] [-inform DER|PEM] [-outform DER|PEM|NSS] [-in filename] [-out\nfilename] [-text] [-cert] [-noout] [-context ID]\n\n## DESCRIPTION\n\nThis 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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (8 subsections)\n- **OUTPUT** (8 subsections)\n- **NOTES**\n- **BUGS**\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "OPENSSL-SESS_ID",
        "section": "",
        "mode": "man",
        "summary": "openssl-sessid - SSL/TLS session handling command",
        "synopsis": "openssl sessid [-help] [-inform DER|PEM] [-outform DER|PEM|NSS] [-in filename] [-out\nfilename] [-text] [-cert] [-noout] [-context ID]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-inform -outform",
                        "lines": 5
                    },
                    {
                        "name": "-in",
                        "lines": 3
                    },
                    {
                        "name": "-out",
                        "lines": 3
                    },
                    {
                        "name": "-text",
                        "lines": 3
                    },
                    {
                        "name": "-cert",
                        "lines": 3
                    },
                    {
                        "name": "-noout",
                        "lines": 2
                    },
                    {
                        "name": "-context",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "OUTPUT",
                "lines": 15,
                "subsections": [
                    {
                        "name": "Protocol",
                        "lines": 2
                    },
                    {
                        "name": "Cipher",
                        "lines": 3
                    },
                    {
                        "name": "Session-ID",
                        "lines": 2
                    },
                    {
                        "name": "Session-ID-ctx",
                        "lines": 2
                    },
                    {
                        "name": "Master-Key",
                        "lines": 2
                    },
                    {
                        "name": "Start Time",
                        "lines": 2
                    },
                    {
                        "name": "Timeout",
                        "lines": 2
                    },
                    {
                        "name": "Verify return code",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ],
        "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 -outform",
                        "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\n\n\n3.0.2                                        2026-06-02                        OPENSSL-SESSID(1SSL)",
                "subsections": []
            }
        }
    }
}