Skip to content

Fix unit test CSR versions for OpenSSL 3.4 change #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Apr 16, 2025

The only valid CSR version is version 1, which is encoded with "csr.version = 0". Versions of OpenSSL prior to 3.4 would allow other versions to be set / versions to be unset but OpenSSL 3.4 is strict about only allowing version 1.

This change updates the unit tests and test fixtures to all specify or contain version 1 CSRs.

seanmil added 2 commits April 17, 2025 11:22
The only valid CSR version is version 1, which is encoded
with "csr.version = 0". Versions of OpenSSL prior to 3.4
would allow other versions to be set / versions to be unset
but OpenSSL 3.4 is strict about only allowing version 1.

This change updates the unit tests to use version 1 in
all CSRs generated as part of testing.  It also adds
the start of a script to help regenerate the
spec/fixtures/ssl directory contents.
Regenerate the CSR test fixtures to ensure that they have
version 1 set.
@seanmil seanmil force-pushed the fix_ssl_errors_openssl34 branch from e51dcb2 to 64a0d22 Compare April 17, 2025 16:42
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.

2 participants