{
    "mode": "man",
    "parameter": "openssl-verify",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/openssl-verify/1/json",
    "generated": "2026-08-16T15:21:32Z",
    "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 ...]",
    "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_download",
                    "content": "Attempt to download CRL information for certificates via their CDP entries.\n"
                },
                {
                    "name": "-show_chain",
                    "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\n-allowproxycerts, -attime, -nochecktime, -checksssig, -crlcheck, -crlcheckall,"
                },
                {
                    "name": "-explicit_policy -extended_crl -ignore_critical -inhibit_any -inhibit_map",
                    "content": "-noaltchains, -partialchain, -policy, -policycheck, -policyprint, -purpose, -suiteB128,\n-suiteB128only, -suiteB192, -trustedfirst, -usedeltas, -authlevel, -verifydepth,\n-verifyemail, -verifyhostname, -verifyip, -verifyname, -x509strict -issuerchecks\nSet 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\n3.0.13                                       2026-07-29                         OPENSSL-VERIFY(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-verify - certificate verification command",
    "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. -allowproxycerts, -attime, -nochecktime, -checksssig, -crlcheck, -crlcheckall,"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "-noaltchains, -partialchain, -policy, -policycheck, -policyprint, -purpose, -suiteB128, -suiteB128only, -suiteB192, -trustedfirst, -usedeltas, -authlevel, -verifydepth, -verifyemail, -verifyhostname, -verifyip, -verifyname, -x509strict -issuerchecks 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"
        }
    ]
}