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 3 #24

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

Conversation

santiagorodriguez96
Copy link
Contributor

@santiagorodriguez96 santiagorodriguez96 commented Feb 16, 2024

Summary

Some tests were failing in the CI when using macos because it comes with ruby installed with OpenSSL v3.2.0. The issue is that, for testing the conformant? method, we set up a certificate to have an invalid version (version is 3 initially) and expect the certificate to not be conformant. 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.

The issue is that we set up the certificate to have an invalid version
(version is `3` initially) but the certificate is later signed which, in
newer versions of OpenSSL, updates the version to a valid one (version
changes to be `2`).

This PR fixes the issue by changing the `version` _after_ the
certificate has been signed.
Those jobs were failing for newer OpenSSL versions. Now that we have
fixed the specs for those, we can bring them back.
@santiagorodriguez96 santiagorodriguez96 changed the title Sr fix tests failing with openssl 3 Fix tests failing with OpenSSL 3 Feb 16, 2024
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.

None yet

1 participant