summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2021-09-30 18:26:16 +0000
committerderaadt <>2021-09-30 18:26:16 +0000
commitf525bc4ca5d1ba59eeee4beb070687c8a7d0c0bb (patch)
treed34d2df411f2decb04a18fa324815b075648e3fd
parenta1d75ef500e825541180bdb19831512601dd5a76 (diff)
downloadopenbsd-f525bc4ca5d1ba59eeee4beb070687c8a7d0c0bb.tar.gz
openbsd-f525bc4ca5d1ba59eeee4beb070687c8a7d0c0bb.tar.bz2
openbsd-f525bc4ca5d1ba59eeee4beb070687c8a7d0c0bb.zip
Enable X509_V_FLAG_TRUSTED_FIRST by default in the legacy verifier.
In order to work around the expired DST Root CA X3 certficiate, enable X509_V_FLAG_TRUSTED_FIRST in the legacy verifier. This means that the default chain provided by Let's Encrypt will stop at the ISRG Root X1 intermediate, rather than following the DST Root CA X3 intermediate. Note that the new verifier does not suffer from this issue, so only a small number of things will hit this code path. ok millert@ robert@ tb@ this is errata 6.8/032_cert.patch
-rw-r--r--src/lib/libcrypto/x509/x509_vpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c
index d4715228dc..5306fb8a54 100644
--- a/src/lib/libcrypto/x509/x509_vpm.c
+++ b/src/lib/libcrypto/x509/x509_vpm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vpm.c,v 1.22.4.1 2021/02/03 07:06:13 tb Exp $ */ 1/* $OpenBSD: x509_vpm.c,v 1.22.4.2 2021/09/30 18:26:16 deraadt Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2004. 3 * project 2004.
4 */ 4 */
@@ -596,6 +596,7 @@ static const X509_VERIFY_PARAM_ID _empty_id = { NULL };
596static const X509_VERIFY_PARAM default_table[] = { 596static const X509_VERIFY_PARAM default_table[] = {
597 { 597 {
598 .name = "default", 598 .name = "default",
599 .flags = X509_V_FLAG_TRUSTED_FIRST,
599 .depth = 100, 600 .depth = 100,
600 .trust = 0, /* XXX This is not the default trust value */ 601 .trust = 0, /* XXX This is not the default trust value */
601 .id = vpm_empty_id 602 .id = vpm_empty_id