Skip to content

pkcs7: fix test failure on RHEL 9 #876

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

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

rhenium
Copy link
Member

@rhenium rhenium commented Apr 3, 2025

The test case test_split_content fails on RHEL 9 and Fedora 41 because their OpenSSL packages do not accept SHA-1 signatures. This was only caught after commit 69fd7f8 added the missing assertion.

While the example PKCS#7 structures could be simply regenerated with SHA-256, this test case could be simplified because it is checking two different things.

Replace test_split_content with separate test cases: one verifying signed-data authenticatedAttributes and another for decoding BER input.

Fixes #875

rhenium added 2 commits April 3, 2025 22:13
Using test_pkcs7.rb as an example invalid input is not reliable because
we may happen to include a valid PKCS#7 PEM block in a heredoc.
The test case test_split_content fails on RHEL 9 and Fedora 41 because
their OpenSSL packages do not accept SHA-1 signatures. This was only
caught after commit 69fd7f8 added the missing assertion.

While the example PKCS#7 structures could be simply regenerated with
SHA-256, this test case could be simplified because it is checking two
different things.

Replace test_split_content with separate test cases: one verifying
signed-data authenticatedAttributes and another for decoding BER input.

Fixes ruby#875
@rhenium rhenium merged commit 4f902d4 into ruby:master Apr 3, 2025
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

OpenSSL::TestPKCS7#test_split_content is failing with RHEL 9 and Fedora 41
1 participant