Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Improve heuristic for --openssl-legacy-provider (#2155) #2172

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

eagleflo
Copy link
Contributor

@eagleflo eagleflo commented Jan 3, 2022

Improve the heuristic for detecting whether we need --openssl-legacy-provider added in #2116 by also checking whether the Node.js was actually built against OpenSSL 3 and has that option available.

Fixes #2155.

@eagleflo eagleflo requested a review from a team as a code owner January 3, 2022 18:30
@threepointone
Copy link
Contributor

This is a very nice solution! I'm afk at the moment, but can I trust that you've tested this for versions that require and don't require the flag? Happy to merge if so.

@eagleflo
Copy link
Contributor Author

eagleflo commented Jan 3, 2022

Yup, tested wrangler preview with the repo in linked issue on both native Arch Linux Node 17.3 (built with OpenSSL 1.1.1m) and Node 17.3 as installed by fnm (built with OpenSSL 3.0.1+quic).

@threepointone threepointone merged commit 38e32d1 into cloudflare:master Jan 3, 2022
@threepointone
Copy link
Contributor

Thanks again for this PR! We'll do a release soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node v17.1.0 doesn't accept --openssl-legacy-provider on Arch Linux
2 participants