{
    "mode": "man",
    "parameter": "x509",
    "section": "7ssl",
    "url": "https://www.chedong.com/phpMan.php/man/x509/7ssl/json",
    "generated": "2026-05-30T06:06:52Z",
    "synopsis": "#include <openssl/x509.h>",
    "sections": {
        "NAME": {
            "content": "x509 - X.509 certificate handling\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "#include <openssl/x509.h>\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "An 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",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "X509NAMEENTRYgetobject(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",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 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)",
            "subsections": []
        }
    },
    "summary": "x509 - X.509 certificate handling",
    "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"
        }
    ]
}