summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2021-09-30 18:25:43 +0000
committerderaadt <>2021-09-30 18:25:43 +0000
commitc53cbda463f77712565932bf7e26ab73d9fb096e (patch)
tree481f5069a238e56a36cddfff8cde104613fb8108
parent71ee60208e7da700113aed24c8957fec0f0095f1 (diff)
downloadopenbsd-c53cbda463f77712565932bf7e26ab73d9fb096e.tar.gz
openbsd-c53cbda463f77712565932bf7e26ab73d9fb096e.tar.bz2
openbsd-c53cbda463f77712565932bf7e26ab73d9fb096e.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.9/018_cert
-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 2907448d55..202b8ec645 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.25 2021/04/15 14:15:03 tb Exp $ */ 1/* $OpenBSD: x509_vpm.c,v 1.25.2.1 2021/09/30 18:25:43 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 */
@@ -598,6 +598,7 @@ static const X509_VERIFY_PARAM_ID _empty_id = { NULL };
598static const X509_VERIFY_PARAM default_table[] = { 598static const X509_VERIFY_PARAM default_table[] = {
599 { 599 {
600 .name = "default", 600 .name = "default",
601 .flags = X509_V_FLAG_TRUSTED_FIRST,
601 .depth = 100, 602 .depth = 100,
602 .trust = 0, /* XXX This is not the default trust value */ 603 .trust = 0, /* XXX This is not the default trust value */
603 .id = vpm_empty_id 604 .id = vpm_empty_id