# phpman > man > openssl-verify(1)

[OPENSSL-VERIFY(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-VERIFY/1SSL/markdown)                           OpenSSL                          [OPENSSL-VERIFY(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-VERIFY/1SSL/markdown)



## NAME
       openssl-verify - certificate verification command

## SYNOPSIS
       **openssl** **verify** [**-help**] [**-CRLfile** _filename_|_uri_] [**-crl**___**download**] [**-show**___**chain**] [**-verbose**]
       [**-trusted** _filename_|_uri_] [**-untrusted** _filename_|_uri_] [**-vfyopt** _nm_:_v_] [**-nameopt** _option_] [**-CAfile**
       _file_] [**-no-CAfile**] [**-CApath** _dir_] [**-no-CApath**] [**-CAstore** _uri_] [**-no-CAstore**] [**-engine** _id_]
       [**-allow**___**proxy**___**certs**] [**-attime** _timestamp_] [**-no**___**check**___**time**] [**-check**___**ss**___**sig**] [**-crl**___**check**]
       [**-crl**___**check**___**all**] [**-explicit**___**policy**] [**-extended**___**crl**] [**-ignore**___**critical**] [**-inhibit**___**any**]
       [**-inhibit**___**map**] [**-partial**___**chain**] [**-policy** _arg_] [**-policy**___**check**] [**-policy**___**print**] [**-purpose**
       _purpose_] [**-suiteB**___**128**] [**-suiteB**___**128**___**only**] [**-suiteB**___**192**] [**-trusted**___**first**] [**-no**___**alt**___**chains**]
       [**-use**___**deltas**] [**-auth**___**level** _num_] [**-verify**___**depth** _num_] [**-verify**___**email** _email_] [**-verify**___**hostname**
       _hostname_] [**-verify**___**ip** _ip_] [**-verify**___**name** _name_] [**-x509**___**strict**] [**-issuer**___**checks**] [**-provider**
       _name_] [**-provider-path** _path_] [**-propquery** _propq_] [**--**] [_certificate_ ...]

## DESCRIPTION
       This command verifies certificate chains. If a certificate chain has multiple problems, this
       program attempts to display all of them.

## OPTIONS
### -help
           Print out a usage message.

### -CRLfile
           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.

### -crl
           Attempt to download CRL information for certificates via their CDP entries.

### -show
           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".

### -verbose
           Print extra information about the operations being performed.

### -trusted
           A file or URI of (more or less) trusted certificates.  See
           [**openssl-verification-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-verification-options/1/markdown) for more information on trust settings.

           This option can be specified more than once to load certificates from multiple sources.

### -untrusted
           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.

### -vfyopt
           Pass options to the signature algorithm during verify operations.  Names and values of
           these options are algorithm-specific.

### -nameopt
           This specifies how the subject or issuer names are displayed.  See
           [**openssl-namedisplay-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-namedisplay-options/1/markdown) for details.

### -engine
           See "Engine Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown).  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.

### -CAfile -no-CAfile -CApath -no-CApath -CAstore -no-CAstore
           See "Trusted Certificate Options" in [**openssl-verification-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-verification-options/1/markdown) for details.

### -allow -attime -no -check -crl -crl
### -explicit -extended -ignore -inhibit -inhibit
### -no -partial -policy -policy -policy -purpose -suiteB
### -suiteB -suiteB -trusted -use -auth -verify
### -verify -verify -verify -verify -x509 -issuer
           Set various options of certificate chain verification.  See "Verification Options" in
           [**openssl-verification-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-verification-options/1/markdown) for details.

### -provider
### -provider-path
### -propquery
           See "Provider Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**provider**(7)](https://www.chedong.com/phpMan.php/man/provider/7/markdown), and [**property**(7)](https://www.chedong.com/phpMan.php/man/property/7/markdown).

       **--**  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.

## DIAGNOSTICS
       When a verify operation fails the output messages can be somewhat cryptic. The general form
       of the error message is:

        server.pem: /C=AU/ST=Queensland/O=CryptSoft Pty Ltd/CN=Test CA (1024 bit)
        error 24 at 1 depth lookup:invalid CA certificate

       The first line contains the name of the certificate being verified followed by the subject
       name of the certificate. The second line contains the error number and the depth. The depth
       is number of the certificate being verified when a problem was detected starting with zero
       for the target ("leaf") certificate itself then 1 for the CA that signed the target
       certificate and so on.  Finally a textual version of the error number is presented.

       A list of the error codes and messages can be found in **X509**___**STORE**___**CTX**___**get**___**[error**(3)](https://www.chedong.com/phpMan.php/man/error/3/markdown); the full
       list is defined in the header file _<openssl/x509_vfy.h>_.

       This command ignores many errors, in order to allow all the problems with a certificate chain
       to be determined.

## SEE ALSO
       [**openssl-verification-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-verification-options/1/markdown), [**openssl-x509**(1)](https://www.chedong.com/phpMan.php/man/openssl-x509/1/markdown), **ossl**___**[store-file**(7)](https://www.chedong.com/phpMan.php/man/store-file/7/markdown)

## HISTORY
       The **-show**___**chain** option was added in OpenSSL 1.1.0.

       The **-engine** **option** was deprecated in OpenSSL 3.0.

## COPYRIGHT
       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

       Licensed under the Apache License 2.0 (the "License").  You may not use this file except in
       compliance with the License.  You can obtain a copy in the file LICENSE in the source
       distribution or at <<https://www.openssl.org/source/license.html>>.



3.0.2                                        2026-06-02                         [OPENSSL-VERIFY(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-VERIFY/1SSL/markdown)
