{
    "content": [
        {
            "type": "text",
            "text": "# openssl-verify (man)\n\n## NAME\n\nopenssl-verify - certificate verification command\n\n## SYNOPSIS\n\nopenssl verify [-help] [-CRLfile filename|uri] [-crldownload] [-showchain] [-verbose]\n[-trusted filename|uri] [-untrusted filename|uri] [-vfyopt nm:v] [-nameopt option] [-CAfile\nfile] [-no-CAfile] [-CApath dir] [-no-CApath] [-CAstore uri] [-no-CAstore] [-engine id]\n[-allowproxycerts] [-attime timestamp] [-nochecktime] [-checksssig] [-crlcheck]\n[-crlcheckall] [-explicitpolicy] [-extendedcrl] [-ignorecritical] [-inhibitany]\n[-inhibitmap] [-partialchain] [-policy arg] [-policycheck] [-policyprint] [-purpose\npurpose] [-suiteB128] [-suiteB128only] [-suiteB192] [-trustedfirst] [-noaltchains]\n[-usedeltas] [-authlevel num] [-verifydepth num] [-verifyemail email] [-verifyhostname\nhostname] [-verifyip ip] [-verifyname name] [-x509strict] [-issuerchecks] [-provider\nname] [-provider-path path] [-propquery propq] [--] [certificate ...]\n\n## DESCRIPTION\n\nThis command verifies certificate chains. If a certificate chain has multiple problems, this\nprogram attempts to display all of them.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (19 subsections)\n- **DIAGNOSTICS**\n- **SEE ALSO**\n- **HISTORY**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "openssl-verify",
        "section": "",
        "mode": "man",
        "summary": "openssl-verify - certificate verification command",
        "synopsis": "openssl verify [-help] [-CRLfile filename|uri] [-crldownload] [-showchain] [-verbose]\n[-trusted filename|uri] [-untrusted filename|uri] [-vfyopt nm:v] [-nameopt option] [-CAfile\nfile] [-no-CAfile] [-CApath dir] [-no-CApath] [-CAstore uri] [-no-CAstore] [-engine id]\n[-allowproxycerts] [-attime timestamp] [-nochecktime] [-checksssig] [-crlcheck]\n[-crlcheckall] [-explicitpolicy] [-extendedcrl] [-ignorecritical] [-inhibitany]\n[-inhibitmap] [-partialchain] [-policy arg] [-policycheck] [-policyprint] [-purpose\npurpose] [-suiteB128] [-suiteB128only] [-suiteB192] [-trustedfirst] [-noaltchains]\n[-usedeltas] [-authlevel num] [-verifydepth num] [-verifyemail email] [-verifyhostname\nhostname] [-verifyip ip] [-verifyname name] [-x509strict] [-issuerchecks] [-provider\nname] [-provider-path path] [-propquery propq] [--] [certificate ...]",
        "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 file or URI should contain one or more CRLs in PEM or DER format. This option can be specified more than once to include CRLs from multiple sources."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Attempt to download CRL information for certificates via their CDP entries."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Display information about the certificate chain that has been built (if successful). Certificates in the chain that came from the untrusted list will be flagged as \"untrusted\"."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print extra information about the operations being performed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "A file or URI of (more or less) trusted certificates. See openssl-verification-options(1) for more information on trust settings. This option can be specified more than once to load certificates from multiple sources."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "A file or URI of untrusted certificates to use for chain building. This option can be specified more than once to load certificates from multiple sources."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Pass options to the signature algorithm during verify operations. Names and values of these options are algorithm-specific."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This specifies how the subject or issuer names are displayed. See openssl-namedisplay-options(1) for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Engine Options\" in openssl(1). This option is deprecated. To load certificates or CRLs that require engine support, specify the -engine option before any of the -trusted, -untrusted or -CRLfile options."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Trusted Certificate Options\" in openssl-verification-options(1) for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set various options of certificate chain verification. See \"Verification Options\" in openssl-verification-options(1) for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Provider Options\" in openssl(1), provider(7), and property(7). -- Indicates the last option. All arguments following this are assumed to be certificate files. This is useful if the first certificate filename begins with a -. certificate ... One or more target certificates to verify, one per file. If no certificates are given, this command will attempt to read a single certificate from standard input."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "openssl-verification-options",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/openssl-verification-options/1/json"
            },
            {
                "name": "openssl-x509",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/openssl-x509/1/json"
            },
            {
                "name": "osslstore-file",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/osslstore-file/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-CRLfile",
                        "lines": 3
                    },
                    {
                        "name": "-crl",
                        "lines": 2
                    },
                    {
                        "name": "-show",
                        "lines": 4
                    },
                    {
                        "name": "-verbose",
                        "lines": 2
                    },
                    {
                        "name": "-trusted",
                        "lines": 5
                    },
                    {
                        "name": "-untrusted",
                        "lines": 3
                    },
                    {
                        "name": "-vfyopt",
                        "lines": 3
                    },
                    {
                        "name": "-nameopt",
                        "lines": 3
                    },
                    {
                        "name": "-engine",
                        "lines": 5
                    },
                    {
                        "name": "-CAfile -no-CAfile -CApath -no-CApath -CAstore -no-CAstore",
                        "lines": 2
                    },
                    {
                        "name": "-allow -attime -no -check -crl -crl",
                        "lines": 1
                    },
                    {
                        "name": "-explicit -extended -ignore -inhibit -inhibit",
                        "lines": 1
                    },
                    {
                        "name": "-no -partial -policy -policy -policy -purpose -suiteB",
                        "lines": 1
                    },
                    {
                        "name": "-suiteB -suiteB -trusted -use -auth -verify",
                        "lines": 1
                    },
                    {
                        "name": "-verify -verify -verify -verify -x509 -issuer",
                        "lines": 3
                    },
                    {
                        "name": "-provider",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path",
                        "lines": 1
                    },
                    {
                        "name": "-propquery",
                        "lines": 9
                    }
                ]
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "openssl-verify - certificate verification command\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "openssl verify [-help] [-CRLfile filename|uri] [-crldownload] [-showchain] [-verbose]\n[-trusted filename|uri] [-untrusted filename|uri] [-vfyopt nm:v] [-nameopt option] [-CAfile\nfile] [-no-CAfile] [-CApath dir] [-no-CApath] [-CAstore uri] [-no-CAstore] [-engine id]\n[-allowproxycerts] [-attime timestamp] [-nochecktime] [-checksssig] [-crlcheck]\n[-crlcheckall] [-explicitpolicy] [-extendedcrl] [-ignorecritical] [-inhibitany]\n[-inhibitmap] [-partialchain] [-policy arg] [-policycheck] [-policyprint] [-purpose\npurpose] [-suiteB128] [-suiteB128only] [-suiteB192] [-trustedfirst] [-noaltchains]\n[-usedeltas] [-authlevel num] [-verifydepth num] [-verifyemail email] [-verifyhostname\nhostname] [-verifyip ip] [-verifyname name] [-x509strict] [-issuerchecks] [-provider\nname] [-provider-path path] [-propquery propq] [--] [certificate ...]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This command verifies certificate chains. If a certificate chain has multiple problems, this\nprogram attempts to display all of them.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-help",
                        "content": "Print out a usage message.\n"
                    },
                    {
                        "name": "-CRLfile",
                        "content": "The file or URI should contain one or more CRLs in PEM or DER format.  This option can be\nspecified more than once to include CRLs from multiple sources.\n"
                    },
                    {
                        "name": "-crl",
                        "content": "Attempt to download CRL information for certificates via their CDP entries.\n"
                    },
                    {
                        "name": "-show",
                        "content": "Display information about the certificate chain that has been built (if successful).\nCertificates in the chain that came from the untrusted list will be flagged as\n\"untrusted\".\n"
                    },
                    {
                        "name": "-verbose",
                        "content": "Print extra information about the operations being performed.\n"
                    },
                    {
                        "name": "-trusted",
                        "content": "A file or URI of (more or less) trusted certificates.  See\nopenssl-verification-options(1) for more information on trust settings.\n\nThis option can be specified more than once to load certificates from multiple sources.\n"
                    },
                    {
                        "name": "-untrusted",
                        "content": "A file or URI of untrusted certificates to use for chain building.  This option can be\nspecified more than once to load certificates from multiple sources.\n"
                    },
                    {
                        "name": "-vfyopt",
                        "content": "Pass options to the signature algorithm during verify operations.  Names and values of\nthese options are algorithm-specific.\n"
                    },
                    {
                        "name": "-nameopt",
                        "content": "This specifies how the subject or issuer names are displayed.  See\nopenssl-namedisplay-options(1) for details.\n"
                    },
                    {
                        "name": "-engine",
                        "content": "See \"Engine Options\" in openssl(1).  This option is deprecated.\n\nTo load certificates or CRLs that require engine support, specify the -engine option\nbefore any of the -trusted, -untrusted or -CRLfile options.\n"
                    },
                    {
                        "name": "-CAfile -no-CAfile -CApath -no-CApath -CAstore -no-CAstore",
                        "content": "See \"Trusted Certificate Options\" in openssl-verification-options(1) for details.\n"
                    },
                    {
                        "name": "-allow -attime -no -check -crl -crl",
                        "content": ""
                    },
                    {
                        "name": "-explicit -extended -ignore -inhibit -inhibit",
                        "content": ""
                    },
                    {
                        "name": "-no -partial -policy -policy -policy -purpose -suiteB",
                        "content": ""
                    },
                    {
                        "name": "-suiteB -suiteB -trusted -use -auth -verify",
                        "content": ""
                    },
                    {
                        "name": "-verify -verify -verify -verify -x509 -issuer",
                        "content": "Set various options of certificate chain verification.  See \"Verification Options\" in\nopenssl-verification-options(1) for details.\n"
                    },
                    {
                        "name": "-provider",
                        "content": ""
                    },
                    {
                        "name": "-provider-path",
                        "content": ""
                    },
                    {
                        "name": "-propquery",
                        "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n\n--  Indicates the last option. All arguments following this are assumed to be certificate\nfiles. This is useful if the first certificate filename begins with a -.\n\ncertificate ...\nOne or more target certificates to verify, one per file. If no certificates are given,\nthis command will attempt to read a single certificate from standard input.\n"
                    }
                ]
            },
            "DIAGNOSTICS": {
                "content": "When a verify operation fails the output messages can be somewhat cryptic. The general form\nof the error message is:\n\nserver.pem: /C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test CA (1024 bit)\nerror 24 at 1 depth lookup:invalid CA certificate\n\nThe first line contains the name of the certificate being verified followed by the subject\nname of the certificate. The second line contains the error number and the depth. The depth\nis number of the certificate being verified when a problem was detected starting with zero\nfor the target (\"leaf\") certificate itself then 1 for the CA that signed the target\ncertificate and so on.  Finally a textual version of the error number is presented.\n\nA list of the error codes and messages can be found in X509STORECTXgeterror(3); the full\nlist is defined in the header file <openssl/x509vfy.h>.\n\nThis command ignores many errors, in order to allow all the problems with a certificate chain\nto be determined.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "openssl-verification-options(1), openssl-x509(1), osslstore-file(7)\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The -showchain option was added in OpenSSL 1.1.0.\n\nThe -engine option was deprecated in OpenSSL 3.0.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2000-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-06-02                         OPENSSL-VERIFY(1SSL)",
                "subsections": []
            }
        }
    }
}