{
    "content": [
        {
            "type": "text",
            "text": "# x509(7ssl) (man)\n\n**Summary:** x509 - X.509 certificate handling\n\n**Synopsis:** #include <openssl/x509.h>\n\n## See Also\n\n- X509NAMEENTRYgetobject(3)\n- X509NAMEaddentrybytxt(3)\n- X509NAMEaddentrybyNID(3)\n- X509NAMEprintex(3)\n- X509NAMEnew(3)\n- PEMX509INFOread(3)\n- d2iX509(3)\n- d2iX509ALGOR(3)\n- d2iX509CRL(3)\n- d2iX509NAME(3)\n- d2iX509REQ(3)\n- d2iX509SIG(3)\n- crypto(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (31 lines)\n- **SEE ALSO** (5 lines)\n- **COPYRIGHT** (9 lines)\n\n## Full Content\n\n### NAME\n\nx509 - X.509 certificate handling\n\n### SYNOPSIS\n\n#include <openssl/x509.h>\n\n### DESCRIPTION\n\nAn X.509 certificate is a structured grouping of information about an individual, a device,\nor anything one can imagine.  An X.509 CRL (certificate revocation list) is a tool to help\ndetermine if a certificate is still valid.  The exact definition of those can be found in the\nX.509 document from ITU-T, or in RFC3280 from PKIX.  In OpenSSL, the type X509 is used to\nexpress such a certificate, and the type X509CRL is used to express a CRL.\n\nA related structure is a certificate request, defined in PKCS#10 from RSA Security, Inc, also\nreflected in RFC2896.  In OpenSSL, the type X509REQ is used to express such a certificate\nrequest.\n\nTo handle some complex parts of a certificate, there are the types X509NAME (to express a\ncertificate name), X509ATTRIBUTE (to express a certificate attribute), X509EXTENSION (to\nexpress a certificate extension) and a few more.\n\nFinally, there's the supertype X509INFO, which can contain a CRL, a certificate and a\ncorresponding private key.\n\nX509XXX, d2iX509XXX, and i2dX509XXX functions handle X.509 certificates, with some\nexceptions, shown below.\n\nX509CRLXXX, d2iX509CRLXXX, and i2dX509CRLXXX functions handle X.509 CRLs.\n\nX509REQXXX, d2iX509REQXXX, and i2dX509REQXXX functions handle PKCS#10 certificate\nrequests.\n\nX509NAMEXXX functions handle certificate names.\n\nX509ATTRIBUTEXXX functions handle certificate attributes.\n\nX509EXTENSIONXXX functions handle certificate extensions.\n\n### SEE ALSO\n\nX509NAMEENTRYgetobject(3), X509NAMEaddentrybytxt(3), X509NAMEaddentrybyNID(3),\nX509NAMEprintex(3), X509NAMEnew(3), PEMX509INFOread(3), d2iX509(3),\nd2iX509ALGOR(3), d2iX509CRL(3), d2iX509NAME(3), d2iX509REQ(3), d2iX509SIG(3),\ncrypto(7)\n\n### COPYRIGHT\n\nCopyright 2003-2021 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-04-07                                   X509(7SSL)\n\n"
        }
    ],
    "structuredContent": {
        "command": "x509",
        "section": "7ssl",
        "mode": "man",
        "summary": "x509 - X.509 certificate handling",
        "synopsis": "#include <openssl/x509.h>",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "X509NAMEENTRYgetobject",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/X509NAMEENTRYgetobject/3/json"
            },
            {
                "name": "X509NAMEaddentrybytxt",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/X509NAMEaddentrybytxt/3/json"
            },
            {
                "name": "X509NAMEaddentrybyNID",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/X509NAMEaddentrybyNID/3/json"
            },
            {
                "name": "X509NAMEprintex",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/X509NAMEprintex/3/json"
            },
            {
                "name": "X509NAMEnew",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/X509NAMEnew/3/json"
            },
            {
                "name": "PEMX509INFOread",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/PEMX509INFOread/3/json"
            },
            {
                "name": "d2iX509",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509/3/json"
            },
            {
                "name": "d2iX509ALGOR",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509ALGOR/3/json"
            },
            {
                "name": "d2iX509CRL",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509CRL/3/json"
            },
            {
                "name": "d2iX509NAME",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509NAME/3/json"
            },
            {
                "name": "d2iX509REQ",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509REQ/3/json"
            },
            {
                "name": "d2iX509SIG",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/d2iX509SIG/3/json"
            },
            {
                "name": "crypto",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/crypto/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 31,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ]
    }
}