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

Support OpenSSL 3 #223

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Support OpenSSL 3 #223

merged 1 commit into from
Jul 19, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jul 18, 2024

In OpenSSL 3 the OpenSSL::PKey::EC class has become immutable. In a pure OpenSSL 3 world the right thing would be to use OpenSSL::PKey.generate_key but that's not supported in OpenSSL 1. Calling .generate is compatible with both 1 and 3.

It also stops mocking the actual calls to see if they will work. prime239v1 is replaced by prime256v1 because on Fedora 39+ only the latter is available.

I only tested this locally on my desktop. If it passes, it's a pure enhancement and I'd expect make Puppet 8 support possible.

In OpenSSL 3 the OpenSSL::PKey::EC class has become immutable.  In a
pure OpenSSL 3 world the right thing would be to use
OpenSSL::PKey.generate_key but that's not supported in OpenSSL 1.
Calling .generate is compatible with both 1 and 3.

It also stops mocking the actual calls to see if they will work.
prime239v1 is replaced by prime256v1 because on Fedora 39+ only the
latter is available.
@bastelfreak bastelfreak merged commit 0d1e388 into voxpupuli:master Jul 19, 2024
16 checks passed
@ekohl ekohl deleted the openssl-3-support branch July 19, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants