diff options
| author | jsing <> | 2026-03-31 13:34:25 +0000 |
|---|---|---|
| committer | jsing <> | 2026-03-31 13:34:25 +0000 |
| commit | de6886498c915f9480c27735044fb65a6578e0c3 (patch) | |
| tree | ab887bc0f0667f3372eb5b96a7361fb04ff935da | |
| parent | ccb38f6d4da1788074ffa4e9a4a99bc33073b703 (diff) | |
| download | openbsd-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.sh | 16 |
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" | |||
| 381 | create_leaf "Server 1" "server-1" "ca-int-2" | 381 | create_leaf "Server 1" "server-1" "ca-int-2" |
| 382 | create_root_bundle "./13a/roots.pem" "ca-root-1" "ca-root-2" | 382 | create_root_bundle "./13a/roots.pem" "ca-root-1" "ca-root-2" |
| 383 | create_bundle "./13a/bundle.pem" "server-1" "ca-int-2" "ca-int-1" | 383 | create_bundle "./13a/bundle.pem" "server-1" "ca-int-2" "ca-int-1" |
| 384 | |||
| 385 | # Scenarios 14a and 14b. | ||
| 386 | create_root "Root CA 1" "ca-root-1" | ||
| 387 | deep_bundle="" | ||
| 388 | root="ca-root-1" | ||
| 389 | for 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" | ||
| 393 | done | ||
| 394 | create_leaf "Client 1" "client-1" "ca-int-30" | ||
| 395 | create_leaf "Client 2" "client-2" "ca-int-31" | ||
| 396 | create_root_bundle "./14a/roots.pem" "ca-root-1" | ||
| 397 | create_root_bundle "./14b/roots.pem" "ca-root-1" | ||
| 398 | create_bundle "./14a/bundle.pem" "client-1" ${deep_bundle} | ||
| 399 | create_bundle "./14b/bundle.pem" "client-2" ${deep_bundle} | ||
