From 38b2e9b49e291f53b0ce41080ff8f93be82e389c Mon Sep 17 00:00:00 2001 From: jsing Date: Tue, 31 Mar 2026 13:34:25 +0000 Subject: [PATCH] Generate two additional certificate test scenarios which have deep chains. --- regress/lib/libcrypto/certs/make-certs.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/regress/lib/libcrypto/certs/make-certs.sh b/regress/lib/libcrypto/certs/make-certs.sh index 3854ff13e04..147c7ac0b5f 100644 --- a/regress/lib/libcrypto/certs/make-certs.sh +++ b/regress/lib/libcrypto/certs/make-certs.sh @@ -381,3 +381,19 @@ create_intermediate "Intermediate CA 2" "ca-int-2" "ca-int-1" create_leaf "Server 1" "server-1" "ca-int-2" create_root_bundle "./13a/roots.pem" "ca-root-1" "ca-root-2" create_bundle "./13a/bundle.pem" "server-1" "ca-int-2" "ca-int-1" + +# Scenarios 14a and 14b. +create_root "Root CA 1" "ca-root-1" +deep_bundle="" +root="ca-root-1" +for i in $(seq 31); do + create_intermediate "Intermediate CA $i" "ca-int-$i" "${root}" + deep_bundle="ca-int-$i ${deep_bundle}" + root="ca-int-$i" +done +create_leaf "Client 1" "client-1" "ca-int-30" +create_leaf "Client 2" "client-2" "ca-int-31" +create_root_bundle "./14a/roots.pem" "ca-root-1" +create_root_bundle "./14b/roots.pem" "ca-root-1" +create_bundle "./14a/bundle.pem" "client-1" ${deep_bundle} +create_bundle "./14b/bundle.pem" "client-2" ${deep_bundle}