summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2026-03-31 13:34:25 +0000
committerjsing <>2026-03-31 13:34:25 +0000
commitde6886498c915f9480c27735044fb65a6578e0c3 (patch)
treeab887bc0f0667f3372eb5b96a7361fb04ff935da
parentccb38f6d4da1788074ffa4e9a4a99bc33073b703 (diff)
downloadopenbsd-de6886498c915f9480c27735044fb65a6578e0c3.tar.gz
openbsd-de6886498c915f9480c27735044fb65a6578e0c3.tar.bz2
openbsd-de6886498c915f9480c27735044fb65a6578e0c3.zip
Generate two additional certificate test scenarios which have deep chains.
-rw-r--r--src/regress/lib/libcrypto/certs/make-certs.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/regress/lib/libcrypto/certs/make-certs.sh b/src/regress/lib/libcrypto/certs/make-certs.sh
index 3854ff13e0..147c7ac0b5 100644
--- a/src/regress/lib/libcrypto/certs/make-certs.sh
+++ b/src/regress/lib/libcrypto/certs/make-certs.sh
@@ -381,3 +381,19 @@ create_intermediate "Intermediate CA 2" "ca-int-2" "ca-int-1"
381create_leaf "Server 1" "server-1" "ca-int-2" 381create_leaf "Server 1" "server-1" "ca-int-2"
382create_root_bundle "./13a/roots.pem" "ca-root-1" "ca-root-2" 382create_root_bundle "./13a/roots.pem" "ca-root-1" "ca-root-2"
383create_bundle "./13a/bundle.pem" "server-1" "ca-int-2" "ca-int-1" 383create_bundle "./13a/bundle.pem" "server-1" "ca-int-2" "ca-int-1"
384
385# Scenarios 14a and 14b.
386create_root "Root CA 1" "ca-root-1"
387deep_bundle=""
388root="ca-root-1"
389for i in $(seq 31); do
390 create_intermediate "Intermediate CA $i" "ca-int-$i" "${root}"
391 deep_bundle="ca-int-$i ${deep_bundle}"
392 root="ca-int-$i"
393done
394create_leaf "Client 1" "client-1" "ca-int-30"
395create_leaf "Client 2" "client-2" "ca-int-31"
396create_root_bundle "./14a/roots.pem" "ca-root-1"
397create_root_bundle "./14b/roots.pem" "ca-root-1"
398create_bundle "./14a/bundle.pem" "client-1" ${deep_bundle}
399create_bundle "./14b/bundle.pem" "client-2" ${deep_bundle}