Mark the test root CA as a CA explicitly instead of picking a cert version by openssl version (#2681)

gen-certs.sh and test/CMakeLists.txt chose between -x509v1 and -x509 by the
openssl version. When the default openssl changed (macOS runner image
20261112), the root was generated as v3 without basicConstraints, openssl
rejected it as 'invalid CA certificate', and every client certificate test
failed. Add basicConstraints CA:TRUE to test.rootCA.conf, drop the version
branching, and verify the client certs against the root in gen-certs.sh.
This commit is contained in:
yhirose authored and GitHub committed 2026-11-17 21:39:31 -05:00
1 parent 748dbfade6
commit eb364f1167
3 files changed
+13 -14

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
default_bits = 2048
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca
prompt = no
output_password = mypass
@@ -16,3 +17,8 @@ emailAddress = test@email.address
[req_attributes]
challengePassword = 1234
# Mark the root as a CA explicitly. Relying on the openssl version to emit a
# v1 certificate (or CA:TRUE by default) breaks when the default changes.
[v3_ca]
basicConstraints = critical,CA:TRUE