Repository navigation
Conversation
OpenSSL 3 rejects the historical RC2-40-CBC PKCS#12 protection by default, so the TLS examples failed to load identity.pfx on modern Linux. Re-export the same key material with AES-256-CBC and add a regression test. Closes smol-rs#375
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenSSL 3 rejects the historical RC2-40-CBC PKCS#12 protection used by
examples/identity.pfx, so TLS examples such ashyper-serverfailed immediately on modern Linux with:Re-export the same certificate/key material with AES-256-CBC + SHA-256 and add a regression test that:
native_tls(the path the examples use)openssl pkcs12under OpenSSL 3 without-legacyCloses #375
Test plan
cargo test --test identity_pfxfails against the old RC2 PFX under OpenSSL 3cargo test --test identity_pfxpasses with the regenerated PFXnative_tls::Identity::from_pkcs12(..., "password")still succeeds