mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-18 19:40:57 +00:00
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.
25 lines
789 B
Plaintext
25 lines
789 B
Plaintext
[req]
|
|
default_bits = 2048
|
|
distinguished_name = req_distinguished_name
|
|
attributes = req_attributes
|
|
x509_extensions = v3_ca
|
|
prompt = no
|
|
output_password = mypass
|
|
|
|
[req_distinguished_name]
|
|
C = US
|
|
ST = Test State or Province
|
|
L = Test Locality
|
|
O = Organization Name
|
|
OU = Organizational Unit Name
|
|
CN = Root CA Name
|
|
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
|