Skip to content

Conversation

caspervonb
Copy link
Collaborator

@caspervonb caspervonb commented Jun 3, 2025

Python 3.13 enforces stricter SSL certificate requirements, rejecting CAs without key usage extensions and proper constraints.

This regenerates the CA certificate with critical basicConstraints and
keyUsage (keyCertSign, cRLSign). Regenerate server and client certs
with correct basicConstraints, keyUsage, and subjectAltName on the
server certificate.

Also added a script to automate certificate generation under tests/certs/.

@caspervonb caspervonb changed the title Fix test certificates to work with Python v3.13 Regenerate test certificates to work with Python v3.13 Jun 3, 2025
Python 3.13 enforces stricter SSL certificate requirements,
rejecting CAs without key usage extensions and proper constraints.

Regenerate the CA certificate with critical basicConstraints and
keyUsage (keyCertSign, cRLSign). Regenerate server and client certs
with correct basicConstraints, keyUsage, and subjectAltName on the
server certificate.

Add a script to automate certificate generation under tests/certs/.

- Ensure compatibility with Python 3.13+ SSL verification
- Prevent SSL verification errors in test suite

Signed-of-by: Casper Beyer <[email protected]>
@caspervonb caspervonb force-pushed the fix-test-certificates branch from d784949 to 96cd7b5 Compare June 3, 2025 09:28
@caspervonb caspervonb requested review from Jarema and wallyqs June 3, 2025 10:13
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wallyqs wallyqs merged commit d9f24b4 into main Jun 3, 2025
36 of 37 checks passed
@wallyqs wallyqs deleted the fix-test-certificates branch June 3, 2025 11:50
@wallyqs wallyqs mentioned this pull request Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants