Skip to content

Commit

Permalink
Add CA constraint to test CA
Browse files Browse the repository at this point in the history
Otherwise recent versions of OpenSSL reject it as an invalid CA
certificate (at least once the test certificates are regenerated).

Fixes: #6896
  • Loading branch information
cjwatson committed Feb 17, 2025
1 parent 1b7c37e commit 5074096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/certs/expired/ca/ca.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ prompt = no
default_md = sha256
encrypt_key = no
distinguished_name = dn
x509_extensions = v3_ca

[dn]
C = US # country code
O = Python Software Foundation # organization
OU = python-requests # organization unit/department
CN = Self-Signed Root CA # common name / your cert name

[v3_ca]
basicConstraints = critical, CA:true

0 comments on commit 5074096

Please sign in to comment.