openssl-verification-options.pod 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. =pod
  2. =head1 NAME
  3. openssl-verification-options - generic X.509 certificate verification options
  4. =head1 SYNOPSIS
  5. B<openssl>
  6. I<command>
  7. [ I<options> ... ]
  8. [ I<parameters> ... ]
  9. =head1 DESCRIPTION
  10. There are many situations where X.509 certificates are verified
  11. within the OpenSSL libraries and in various OpenSSL commands.
  12. Certificate verification is implemented by L<X509_verify_cert(3)>.
  13. It is a complicated process consisting of a number of steps
  14. and depending on numerous options.
  15. The most important of them are detailed in the following sections.
  16. In a nutshell, a valid chain of certifciates needs to be built up and verified
  17. starting from the I<target certificate> that is to be verified
  18. and ending in a certificate that due to some policy is trusted.
  19. Verification is done relative to the given I<purpose>, which is the intended use
  20. of the target certificate, such as SSL server, or by default for any purpose.
  21. The details of how each OpenSSL command handles errors
  22. are documented on the specific command page.
  23. DANE support is documented in L<openssl-s_client(1)>,
  24. L<SSL_CTX_dane_enable(3)>, L<SSL_set1_host(3)>,
  25. L<X509_VERIFY_PARAM_set_flags(3)>, and L<X509_check_host(3)>.
  26. =head2 Trust Anchors
  27. In general, according to RFC 4158 and RFC 5280, a I<trust anchor> is
  28. any public key and related subject distinguished name (DN) that
  29. for some reason is considered trusted
  30. and thus is acceptable as the root of a chain of certificates.
  31. In practice, trust anchors are given in the form of certificates,
  32. where their essential fields are the public key and the subject DN.
  33. In addition to the requirements in RFC 5280,
  34. OpenSSL checks the validity period of such certificates
  35. and makes use of some further fields.
  36. In particular, the subject key identifier extension, if present,
  37. is used for matching trust anchors during chain building.
  38. In the most simple and common case, trust anchors are by default
  39. all self-signed "root" CA certificates that are placed in the I<trust store>,
  40. which is a collection of certificates that are trusted for certain uses.
  41. This is akin to what is used in the trust stores of Mozilla Firefox,
  42. or Apple's and Microsoft's certificate stores, ...
  43. From the OpenSSL perspective, a trust anchor is a certificate
  44. that should be augmented with an explicit designation for which
  45. uses of a target certificate the certificate may serve as a trust anchor.
  46. In PEM encoding, this is indicated by the C<TRUSTED CERTIFICATE> string.
  47. Such a designation provides a set of positive trust attributes
  48. explicitly stating trust for the listed purposes
  49. and/or a set of negative trust attributes
  50. explicitly rejecting the use for the listed purposes.
  51. The purposes are encoded using the values defined for the extended key usages
  52. (EKUs) that may be given in X.509 extensions of end-entity certificates.
  53. See also the L</Extended Key Usage> section below.
  54. The currently recognized uses are
  55. B<clientAuth> (SSL client use), B<serverAuth> (SSL server use),
  56. B<emailProtection> (S/MIME email use), B<codeSigning> (object signer use),
  57. B<OCSPSigning> (OCSP responder use), B<OCSP> (OCSP request use),
  58. B<timeStamping> (TSA server use), and B<anyExtendedKeyUsage>.
  59. As of OpenSSL 1.1.0, the last of these blocks all uses when rejected or
  60. enables all uses when trusted.
  61. A certificate, which may be CA certificate or an end-entity certificate,
  62. is considered a trust anchor for the given use
  63. if and only if all the following conditions hold:
  64. =over 4
  65. =item *
  66. It is an an element of the trust store.
  67. =item *
  68. It does not have a negative trust attribute rejecting the given use.
  69. =item *
  70. It has a positive trust attribute accepting the given use
  71. or (by default) one of the following compatibilty conditions apply:
  72. It is self-signed or the B<-partial_chain> option is given
  73. (which corresponds to the B<X509_V_FLAG_PARTIAL_CHAIN> flag being set).
  74. =back
  75. =head2 Certification Path Building
  76. First, a certificate chain is built up starting from the target certificate
  77. and ending in a trust anchor.
  78. The chain is built up iteratively, looking up in turn
  79. a certificate with suitable key usage that
  80. matches as an issuer of the current "subject" certificate as described below.
  81. If there is such a certificate, the first one found that is currently valid
  82. is taken, otherwise the one that expired most recently of all such certificates.
  83. For efficiency, no backtracking is performed, thus
  84. any further candidate issuer certificates that would match equally are ignored.
  85. When a self-signed certificate has been added, chain construction stops.
  86. In this case it must fully match a trust anchor, otherwise chain building fails.
  87. A candidate issuer certificate matches a subject certificate
  88. if all of the following conditions hold:
  89. =over 4
  90. =item *
  91. Its subject name matches the issuer name of the subject certificate.
  92. =item *
  93. If the subject certificate has an authority key identifier extension,
  94. each of its sub-fields equals the corresponding subject key identifier, serial
  95. number, and issuer field of the candidate issuer certificate,
  96. as far as the respective fields are present in both certificates.
  97. item *
  98. The certificate signature algorithm used to sign the subject certificate
  99. is supported and
  100. equals the public key algorithm of the candidate issuer certificate.
  101. =back
  102. The lookup first searches for issuer certificates in the trust store.
  103. If it does not find a match there it consults
  104. the list of untrusted ("intermediate" CA) certificates, if provided.
  105. =head2 Certification Path Validation
  106. When the certificate chain building process was successful
  107. the chain components and their links are checked thoroughly.
  108. The first step is to check that each certificate is well-formed.
  109. Part of these checks are enabled only if the B<-x509_strict> option is given.
  110. The second step is to check the extensions of every untrusted certificate
  111. for consistency with the given purpose.
  112. If the B<-purpose> option is not included then no such checks are done.
  113. The target certificate must not have an EKU extension that is incompatible with
  114. the given purpose, and all other certificates must be valid CA certificates.
  115. The precise extensions required are described in more detail in
  116. L<openssl-x509(1)/CERTIFICATE EXTENSIONS>.
  117. The third step is to check the trust settings on the last certificate
  118. (which typically is a self-signed root CA certificate).
  119. It must be trusted for the given use.
  120. For compatibility with previous versions of OpenSSL, a self-signed certificate
  121. with no trust attributes is considered to be valid for all uses.
  122. The fourth, and final, step is to check the validity of the certificate chain.
  123. For each element in the chain, including the root CA certificate,
  124. the validity period as specified by the C<notBefore> and C<notAfter> fields
  125. is checked against the current system time.
  126. The B<-attime> flag may be used to use a reference time other than "now."
  127. The certificate signature is checked as well
  128. (except for the signature of the typically self-signed root CA certificate,
  129. which is verified only if the B<-check_ss_sig> option is given).
  130. When verifying a certificate signature
  131. the keyUsage extension (if present) of the candidate issuer certificate
  132. is checked to permit digitalSignature for signing proxy certificates
  133. or to permit keyCertSign for signing other certificates, respectively.
  134. If all operations complete successfully then certificate is considered
  135. valid. If any operation fails then the certificate is not valid.
  136. =head1 OPTIONS
  137. =head2 Trusted Certificate Options
  138. The following options specify how to supply the certificates
  139. that can be used as trust anchors for certain uses.
  140. As mentioned, a collection of such certificates is called a I<trust store>.
  141. Note that OpenSSL does not provide a default set of trust anchors. Many
  142. Linux distributions include a system default and configure OpenSSL to point
  143. to that. Mozilla maintains an influential trust store that can be found at
  144. L<https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/>.
  145. The certificates to add to the trust store
  146. can be specified using following options.
  147. =over 4
  148. =item B<-CAfile> I<file>
  149. Load the specified file which contains a certificate
  150. or several of them in case the input is in PEM or PKCS#12 format.
  151. PEM-encoded certificates may also have trust attributes set.
  152. =item B<-no-CAfile>
  153. Do not load the default file of trusted certificates.
  154. =item B<-CApath> I<dir>
  155. Use the specified directory as a collection of trusted certificates,
  156. i.e., a trust store.
  157. Files should be named with the hash value of the X.509 SubjectName of each
  158. certificate. This is so that the library can extract the IssuerName,
  159. hash it, and directly lookup the file to get the issuer certificate.
  160. See L<openssl-rehash(1)> for information on creating this type of directory.
  161. =item B<-no-CApath>
  162. Do not use the default directory of trusted certificates.
  163. =item B<-CAstore> I<uri>
  164. Use I<uri> as a store of CA certificates.
  165. The URI may indicate a single certificate, as well as a collection of them.
  166. With URIs in the C<file:> scheme, this acts as B<-CAfile> or
  167. B<-CApath>, depending on if the URI indicates a single file or
  168. directory.
  169. See L<ossl_store-file(7)> for more information on the C<file:> scheme.
  170. These certificates are also used when building the server certificate
  171. chain (for example with L<openssl-s_server(1)>) or client certificate
  172. chain (for example with L<openssl-s_time(1)>).
  173. =item B<-no-CAstore>
  174. Do not use the default store of trusted CA certificates.
  175. =back
  176. =head2 Verification Options
  177. The certificate verification can be fine-tuned with the following flags.
  178. =over 4
  179. =item B<-verbose>
  180. Print extra information about the operations being performed.
  181. =item B<-attime> I<timestamp>
  182. Perform validation checks using time specified by I<timestamp> and not
  183. current system time. I<timestamp> is the number of seconds since
  184. January 1, 1970 (i.e., the Unix Epoch).
  185. =item B<-no_check_time>
  186. This option suppresses checking the validity period of certificates and CRLs
  187. against the current time. If option B<-attime> is used to specify
  188. a verification time, the check is not suppressed.
  189. =item B<-x509_strict>
  190. This disables non-compliant workarounds for broken certificates.
  191. Thus errors are thrown on certificates not compliant with RFC 5280.
  192. When this option is set,
  193. among others, the following certificate well-formedness conditions are checked:
  194. =over 4
  195. =item -
  196. The basicConstraints of CA certificates must be marked critical.
  197. =item -
  198. CA certificates must explicitly include the keyUsage extension.
  199. =item -
  200. If a pathlenConstraint is given the key usage keyCertSign must be allowed.
  201. =item -
  202. The pathlenConstraint must not be given for non-CA certificates.
  203. =item -
  204. The issuer name of any certificate must not be empty.
  205. =item -
  206. The subject name of CA certs, certs with keyUsage crlSign, and certs
  207. without subjectAlternativeName must not be empty.
  208. =item -
  209. If a subjectAlternativeName extension is given it must not be empty.
  210. =item -
  211. The signatureAlgorithm field and the cert signature must be consistent.
  212. =item -
  213. Any given authorityKeyIdentifier and any given subjectKeyIdentifier
  214. must not be marked critical.
  215. =item -
  216. The authorityKeyIdentifier must be given for X.509v3 certs unless they
  217. are self-signed.
  218. =item -
  219. The subjectKeyIdentifier must be given for all X.509v3 CA certs.
  220. =back
  221. =item B<-ignore_critical>
  222. Normally if an unhandled critical extension is present that is not
  223. supported by OpenSSL the certificate is rejected (as required by RFC5280).
  224. If this option is set critical extensions are ignored.
  225. =item B<-issuer_checks>
  226. Ignored.
  227. =item B<-crl_check>
  228. Checks end entity certificate validity by attempting to look up a valid CRL.
  229. If a valid CRL cannot be found an error occurs.
  230. =item B<-crl_check_all>
  231. Checks the validity of B<all> certificates in the chain by attempting
  232. to look up valid CRLs.
  233. =item B<-use_deltas>
  234. Enable support for delta CRLs.
  235. =item B<-extended_crl>
  236. Enable extended CRL features such as indirect CRLs and alternate CRL
  237. signing keys.
  238. =item B<-suiteB_128_only>, B<-suiteB_128>, B<-suiteB_192>
  239. Enable the Suite B mode operation at 128 bit Level of Security, 128 bit or
  240. 192 bit, or only 192 bit Level of Security respectively.
  241. See RFC6460 for details. In particular the supported signature algorithms are
  242. reduced to support only ECDSA and SHA256 or SHA384 and only the elliptic curves
  243. P-256 and P-384.
  244. =item B<-auth_level> I<level>
  245. Set the certificate chain authentication security level to I<level>.
  246. The authentication security level determines the acceptable signature and
  247. public key strength when verifying certificate chains. For a certificate
  248. chain to validate, the public keys of all the certificates must meet the
  249. specified security I<level>. The signature algorithm security level is
  250. enforced for all the certificates in the chain except for the chain's
  251. I<trust anchor>, which is either directly trusted or validated by means
  252. other than its signature. See L<SSL_CTX_set_security_level(3)> for the
  253. definitions of the available levels. The default security level is -1,
  254. or "not set". At security level 0 or lower all algorithms are acceptable.
  255. Security level 1 requires at least 80-bit-equivalent security and is broadly
  256. interoperable, though it will, for example, reject MD5 signatures or RSA
  257. keys shorter than 1024 bits.
  258. =item B<-partial_chain>
  259. Allow verification to succeed if an incomplete chain can be built.
  260. That is, a chain ending in a certificate that normally would not be trusted
  261. (because it has no matching positive trust attributes and is not self-signed)
  262. but is an element of the trust store.
  263. This certificate may be self-issued or belong to an intermediate CA.
  264. =item B<-check_ss_sig>
  265. Verify the signature of
  266. the last certificate in a chain if the certificate is supposedly self-signed.
  267. This is prohibited and will result in an error if it is a non-conforming CA
  268. certificate with key usage restrictions not including the keyCertSign bit.
  269. This verification is disabled by default because it doesn't add any security.
  270. =item B<-allow_proxy_certs>
  271. Allow the verification of proxy certificates.
  272. =item B<-trusted_first>
  273. As of OpenSSL 1.1.0 this option is on by default and cannot be disabled.
  274. When constructing the certificate chain, the trusted certificates specified
  275. via B<-CAfile>, B<-CApath>, B<-CAstore> or B<-trusted> are always used
  276. before any certificates specified via B<-untrusted>.
  277. =item B<-no_alt_chains>
  278. As of OpenSSL 1.1.0, since B<-trusted_first> always on, this option has no
  279. effect.
  280. =item B<-trusted> I<file>
  281. Parse I<file> as a set of one or more certificates.
  282. Each of them qualifies as trusted if has a suitable positive trust attribute
  283. or it is self-signed or the B<-partial_chain> option is specified.
  284. This option implies the B<-no-CAfile>, B<-no-CApath>, and B<-no-CAstore> options
  285. and it cannot be used with the B<-CAfile>, B<-CApath> or B<-CAstore> options, so
  286. only certificates specified using the B<-trusted> option are trust anchors.
  287. This option may be used multiple times.
  288. =item B<-untrusted> I<file>
  289. Parse I<file> as a set of one or more certificates.
  290. All certificates (typically of intermediate CAs) are considered untrusted
  291. and may be used to
  292. construct a certificate chain from the target certificate to a trust anchor.
  293. This option may be used multiple times.
  294. =item B<-policy> I<arg>
  295. Enable policy processing and add I<arg> to the user-initial-policy-set (see
  296. RFC5280). The policy I<arg> can be an object name an OID in numeric form.
  297. This argument can appear more than once.
  298. =item B<-explicit_policy>
  299. Set policy variable require-explicit-policy (see RFC5280).
  300. =item B<-policy_check>
  301. Enables certificate policy processing.
  302. =item B<-policy_print>
  303. Print out diagnostics related to policy processing.
  304. =item B<-inhibit_any>
  305. Set policy variable inhibit-any-policy (see RFC5280).
  306. =item B<-inhibit_map>
  307. Set policy variable inhibit-policy-mapping (see RFC5280).
  308. =item B<-purpose> I<purpose>
  309. The intended use for the certificate. If this option is not specified, this
  310. command will not consider certificate purpose during chain verification.
  311. Currently accepted uses are B<sslclient>, B<sslserver>, B<nssslserver>,
  312. B<smimesign>, B<smimeencrypt>, B<crlsign>, B<ocsphelper>, B<timestampsign>,
  313. and <any>.
  314. =item B<-verify_depth> I<num>
  315. Limit the certificate chain to I<num> intermediate CA certificates.
  316. A maximal depth chain can have up to I<num>+2 certificates, since neither the
  317. end-entity certificate nor the trust-anchor certificate count against the
  318. B<-verify_depth> limit.
  319. =item B<-verify_email> I<email>
  320. Verify if I<email> matches the email address in Subject Alternative Name or
  321. the email in the subject Distinguished Name.
  322. =item B<-verify_hostname> I<hostname>
  323. Verify if I<hostname> matches DNS name in Subject Alternative Name or
  324. Common Name in the subject certificate.
  325. =item B<-verify_ip> I<ip>
  326. Verify if I<ip> matches the IP address in Subject Alternative Name of
  327. the subject certificate.
  328. =item B<-verify_name> I<name>
  329. Use default verification policies like trust model and required certificate
  330. policies identified by I<name>.
  331. The trust model determines which auxiliary trust or reject OIDs are applicable
  332. to verifying the given certificate chain.
  333. They can be given using the B<-addtrust> and B<-addreject> options
  334. for L<openssl-x509(1)>.
  335. Supported policy names include: B<default>, B<pkcs7>, B<smime_sign>,
  336. B<ssl_client>, B<ssl_server>.
  337. These mimics the combinations of purpose and trust settings used in SSL, CMS
  338. and S/MIME.
  339. As of OpenSSL 1.1.0, the trust model is inferred from the purpose when not
  340. specified, so the B<-verify_name> options are functionally equivalent to the
  341. corresponding B<-purpose> settings.
  342. =back
  343. =head2 Extended Verification Options
  344. Sometimes there may be more than one certificate chain leading to an
  345. end-entity certificate.
  346. This usually happens when a root or intermediate CA signs a certificate
  347. for another a CA in other organization.
  348. Another reason is when a CA might have intermediates that use two different
  349. signature formats, such as a SHA-1 and a SHA-256 digest.
  350. The following options can be used to provide data that will allow the
  351. OpenSSL command to generate an alternative chain.
  352. =over 4
  353. =item B<-xkey> I<infile>, B<-xcert> I<infile>, B<-xchain>
  354. Specify an extra certificate, private key and certificate chain. These behave
  355. in the same manner as the B<-cert>, B<-key> and B<-cert_chain> options. When
  356. specified, the callback returning the first valid chain will be in use by the
  357. client.
  358. =item B<-xchain_build>
  359. Specify whether the application should build the certificate chain to be
  360. provided to the server for the extra certificates via the B<-xkey>,
  361. B<-xcert>, and B<-xchain> options.
  362. =item B<-xcertform> B<DER>|B<PEM>|B<P12>
  363. The input format for the extra certificate.
  364. This option has no effect and is retained for backward compatibility only.
  365. =item B<-xkeyform> B<DER>|B<PEM>|B<P12>
  366. The input format for the extra key.
  367. This option has no effect and is retained for backward compatibility only.
  368. =back
  369. =head2 Certificate Extensions
  370. Options like B<-purpose> lead to checking the certificate extensions,
  371. which determine what the target certificate and intermediate CA certificates
  372. can be used for.
  373. =head3 Basic Constraints
  374. The basicConstraints extension CA flag is used to determine whether the
  375. certificate can be used as a CA. If the CA flag is true then it is a CA,
  376. if the CA flag is false then it is not a CA. B<All> CAs should have the
  377. CA flag set to true.
  378. If the basicConstraints extension is absent,
  379. which includes the case that it is an X.509v1 certificate,
  380. then the certificate is considered to be a "possible CA" and
  381. other extensions are checked according to the intended use of the certificate.
  382. The treatment of certificates without basicConstraints as a CA
  383. is presently supported, but this could change in the future.
  384. =head3 Key Usage
  385. If the keyUsage extension is present then additional restraints are
  386. made on the uses of the certificate. A CA certificate B<must> have the
  387. keyCertSign bit set if the keyUsage extension is present.
  388. =head3 Extended Key Usage
  389. The extKeyUsage (EKU) extension places additional restrictions on the
  390. certificate uses. If this extension is present (whether critical or not)
  391. the key can only be used for the purposes specified.
  392. A complete description of each check is given below. The comments about
  393. basicConstraints and keyUsage and X.509v1 certificates above apply to B<all>
  394. CA certificates.
  395. =over 4
  396. =item B<SSL Client>
  397. The extended key usage extension must be absent or include the "web client
  398. authentication" OID. The keyUsage extension must be absent or it must have the
  399. digitalSignature bit set. The Netscape certificate type must be absent
  400. or it must have the SSL client bit set.
  401. =item B<SSL Client CA>
  402. The extended key usage extension must be absent or include the "web client
  403. authentication" OID.
  404. The Netscape certificate type must be absent or it must have the SSL CA bit set.
  405. This is used as a work around if the basicConstraints extension is absent.
  406. =item B<SSL Server>
  407. The extended key usage extension must be absent or include the "web server
  408. authentication" and/or one of the SGC OIDs. The keyUsage extension must be
  409. absent or it
  410. must have the digitalSignature, the keyEncipherment set or both bits set.
  411. The Netscape certificate type must be absent or have the SSL server bit set.
  412. =item B<SSL Server CA>
  413. The extended key usage extension must be absent or include the "web server
  414. authentication" and/or one of the SGC OIDs. The Netscape certificate type must
  415. be absent or the SSL CA bit must be set.
  416. This is used as a work around if the basicConstraints extension is absent.
  417. =item B<Netscape SSL Server>
  418. For Netscape SSL clients to connect to an SSL server it must have the
  419. keyEncipherment bit set if the keyUsage extension is present. This isn't
  420. always valid because some cipher suites use the key for digital signing.
  421. Otherwise it is the same as a normal SSL server.
  422. =item B<Common S/MIME Client Tests>
  423. The extended key usage extension must be absent or include the "email
  424. protection" OID. The Netscape certificate type must be absent or should have the
  425. S/MIME bit set. If the S/MIME bit is not set in the Netscape certificate type
  426. then the SSL client bit is tolerated as an alternative but a warning is shown.
  427. This is because some Verisign certificates don't set the S/MIME bit.
  428. =item B<S/MIME Signing>
  429. In addition to the common S/MIME client tests the digitalSignature bit or
  430. the nonRepudiation bit must be set if the keyUsage extension is present.
  431. =item B<S/MIME Encryption>
  432. In addition to the common S/MIME tests the keyEncipherment bit must be set
  433. if the keyUsage extension is present.
  434. =item B<S/MIME CA>
  435. The extended key usage extension must be absent or include the "email
  436. protection" OID. The Netscape certificate type must be absent or must have the
  437. S/MIME CA bit set.
  438. This is used as a work around if the basicConstraints extension is absent.
  439. =item B<CRL Signing>
  440. The keyUsage extension must be absent or it must have the CRL signing bit
  441. set.
  442. =item B<CRL Signing CA>
  443. The normal CA tests apply. Except in this case the basicConstraints extension
  444. must be present.
  445. =back
  446. =head1 BUGS
  447. The issuer checks still suffer from limitations in the underlying X509_LOOKUP
  448. API. One consequence of this is that trusted certificates with matching
  449. subject name must appear in a file (as specified by the B<-CAfile> option),
  450. a directory (as specified by B<-CApath>),
  451. or a store (as specified by B<-CAstore>).
  452. If there are multiple such matches, possibly in multiple locations,
  453. only the first one (in the mentioned order of locations) is recognised.
  454. =head1 SEE ALSO
  455. L<X509_verify_cert(3)>,
  456. L<openssl-verify(1)>,
  457. L<openssl-ocsp(1)>,
  458. L<openssl-ts(1)>,
  459. L<openssl-s_client(1)>,
  460. L<openssl-s_server(1)>,
  461. L<openssl-smime(1)>,
  462. L<openssl-cmp(1)>,
  463. L<openssl-cms(1)>
  464. =head1 HISTORY
  465. The checks enabled by B<-x509_strict> have been extended in OpenSSL 3.0.
  466. =head1 COPYRIGHT
  467. Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
  468. Licensed under the Apache License 2.0 (the "License"). You may not use
  469. this file except in compliance with the License. You can obtain a copy
  470. in the file LICENSE in the source distribution or at
  471. L<https://www.openssl.org/source/license.html>.
  472. =cut