OPENSSL-VERIFY(1ossl)
π
openssl-verify β like, the certificate verification command (from the OPENSSL-VERIFY(1ossl) manual, bestie)
okay so real talk: this is the openssl verify page. it checks certificate chains, and ngl it's kind of the main character of trust validation. if a chain has multiple problems, this program attempts to display all of them β not just the first one it trips over. iconic behavior honestly π«Ά
β¨ 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] [-provparam [name:]key=value] [-propquery propq]
[--] [certificate ...]
πΈ DESCRIPTION πΈ
This command verifies certificate chains. periodt. and if a certificate chain has multiple problems, this program attempts to display all of them β so you get the whole tea at once instead of one error at a time π
β¨ OPTIONS β¨
-helpβ prints out a usage message. the "help me help you" option π-CRLfile filename|uriβ the file or URI should contain one or more CRLs in PEM or DER format. you can specify this option more than once to include CRLs from multiple sources. stack 'em up π-crl_downloadβ attempts to download CRL information for certificates via their CDP entries. going to get the receipts itself β¨-show_chainβ displays 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". lowkey the most fun option here, you get to actually see the chain π-verboseβ prints extra information about the operations being performed. she's chatty, we love that π-trusted filename|uriβ a file or URI of (more or less) trusted certificates. seeopenssl-verification-options(1)for more information on trust settings. this option can be specified more than once to load certificates from multiple sources.-untrusted filename|uriβ 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 nm:vβ passes options to the signature algorithm during verify operations. names and values of these options are algorithm-specific. iykyk.-nameopt optionβ specifies how the subject or issuer names are displayed. seeopenssl-namedisplay-options(1)for details. it's giving "make it pretty" πΈ-engine idβ see"Engine Options"inopenssl(1). this option is deprecated. π¨ to load certificates or CRLs that require engine support, specify the-engineoption before any of the-trusted,-untrustedor-CRLfileoptions. order matters, bestie, don't come for me.-CAfile file,-no-CAfile,-CApath dir,-no-CApath,-CAstore uri,-no-CAstoreβ see"Trusted Certificate Options"inopenssl-verification-options(1)for details.-allow_proxy_certs,-attime,-no_check_time,-check_ss_sig,-crl_check,-crl_check_all,-explicit_policy,-extended_crl,-ignore_critical,-inhibit_any,-inhibit_map,-no_alt_chains,-partial_chain,-policy,-policy_check,-policy_print,-purpose,-suiteB_128,-suiteB_128_only,-suiteB_192,-trusted_first,-use_deltas,-auth_level,-verify_depth,-verify_email,-verify_hostname,-verify_ip,-verify_name,-x509_strict-issuer_checksβ set various options of certificate chain verification. see"Verification Options"inopenssl-verification-options(1)for details. yes that's a whole vibe wall of them, and yes, they all live in that one doc π-provider name,-provider-path path,-provparam [name:]key=value,-propquery propqβ see"Provider Options"inopenssl(1),provider(7), andproperty(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-. lifesaver fr fr π«Ά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. no args? she'll just read stdin, she's flexible like that β¨
π©Ί DIAGNOSTICS π©Ί
so when a verify operation fails the output messages can be somewhat cryptic. not gonna lie to you. 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
let me break down the anatomy of this little guy π
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 the 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); the full list is defined in the header file <openssl/x509_vfy.h>.
β οΈ heads up: this command ignores many errors, in order to allow all the problems with a certificate chain to be determined. yes, ignores. it's on purpose. she's collecting all the receipts at once, not stopping at the first one π
π SEE ALSO π
openssl-verification-options(1), openssl-x509(1), ossl_store-file(7)
π HISTORY π
- the
-show_chainoption was added in OpenSSL 1.1.0. β¨ - the
-engineoption 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>.
and that's the whole page, bestie π mwah π β this was OPENSSL-VERIFY(1ossl) from OpenSSL 3.5.0, dated 2026-09-25. go verify something and slay π
π
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms