Skip to content
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

Fix tests failing with OpenSSL v3 #424

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

santiagorodriguez96
Copy link
Contributor

Fixes #417.

Some tests fail when using OpenSSL v3. The issue is that, for testing the valid? method for attestation statements, we set up a certificate to have an invalid version (version is 1 initially) and expect the attestation statement to not be valid. But when setting up the certificate we have to sign it which, in newer versions of OpenSSL, updates the version to a valid one (version changes to be 2), thus causing the expectation to not be met and therefore the spec to fail.

This PR fixes the issue by changing the version after the certificate has been signed.

Fixes #417.

Some tests fail when using OpenSSL v3. The issue is that, for testing
the `valid?` method for attestation statements, we set up a certificate
to have an invalid version (version is 1 initially) and expect the
attestation statement to not be valid. But when setting up the
certificate we have to sign it which, in newer versions of OpenSSL,
updates the version to a valid one (version changes to be 2), thus
causing the expectation to not be met and therefore the spec to fail.

This PR fixes the issue by changing the version after the certificate
has been signed.
@santiagorodriguez96
Copy link
Contributor Author

@bdewater I took a different approach than the ones were discussed here, let me know what you think!

@santiagorodriguez96 santiagorodriguez96 merged commit f030a78 into master Mar 8, 2024
9 checks passed
@santiagorodriguez96 santiagorodriguez96 deleted the sr--fix-tests-failing-with-openssl3 branch March 8, 2024 11:45
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.

Tests failing when using OpenSSL library v3
2 participants