mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-18 19:40:57 +00:00
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:
1 parent
748dbfade6
commit
eb364f1167
3 files changed
+13
-14
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user