Skip to content

Commit a3982b5

Browse files
committed
Generate test certificates that pass python 3.13 criteria
Python 3.13 has started requiring the authorityKeyIdentifier field as per python/cpython#107361 . After iterating a bit, it appears that we only need to pass "-addext keyUsage=keyCertSign" to openssl during CA certificate creation and the server certificate will have the proper field. It's also possible to use something like `trustme` to generate the certificates but that would have been a much larger change and more work (maybe leading to most of the script being dropped however).
1 parent e38f88b commit a3982b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

breezy/tests/ssl_certs/create_ssls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def build_ca_certificate():
131131
_openssl(
132132
[
133133
"req",
134+
"-addext",
135+
"keyUsage = keyCertSign",
134136
"-passin",
135137
"stdin",
136138
"-new",

0 commit comments

Comments
 (0)