Skip to content

Bump minimum OpenSSL version to 1.1.1 #10969

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

Closed
wants to merge 1 commit into from

Conversation

GrahamCampbell
Copy link
Contributor

OpenSSL 1.0.2 has been EOL since December 31, 2019, and OpenSSL 1.1.1 will be EOL on September 11, 2023. I don't think it makes sense to continue to support OpenSSL 1.0.2, when upgrading to 1.1.1 (and even 3.0, in some cases) is mostly easy. Most Linux distributions ship with OpenSSL 3.0 LTS these days, too. I would propose we bump the minimum version to 1.1.1 in PHP 8.3, then to 3.0 in PHP 8.5. Bumping to 1.1.1 also allows us to fix some deprecation warnings that appear when building on 3.0 (I think), while maintaining 1.1.1 compatibility, which will ultimately be necessary to enable building with 4.0 when that comes out.


List of major Linux distributions that will not be EOL before PHP 8.3's release date:

  • Debian 10 ships with OpenSSL 1.1.1n.
  • Debian 11 ships with OpenSSL 1.1.1n.
  • Debian 12 will ship with OpenSSL 3.0.8.
  • RHEL 8 ships with OpenSSL 1.1.1k.
  • RHEL 9 ships with OpenSSL 3.0.1.
  • Ubuntu 20.04 ships with OpenSSL 1.1.1f.
  • Ubuntu 22.04 ships with OpenSSL 3.0.2.
  • Alpine 3.16 ships with OpenSSL 1.1.1t.
  • Alpine 3.17 ships with OpenSSL 3.0.8.

All of them have 1.1.1 or 3.0.

@bukka
Copy link
Member

bukka commented Mar 29, 2023

Unfortunately it is too early as we still support RHEL 7 variants which also contains Amazon Linux 2. Those distros should still provide security updates for OpenSSL 1.0.2 and we want people to be able to install new PHP versions there. Amazon Linux 2 has got currently EOL in June 2025 so we won't be able to do this bump for some time.

@GrahamCampbell
Copy link
Contributor Author

GrahamCampbell commented Mar 29, 2023

I thought RHEL 7 is out of maintenance this year? Can't such users just stick with PHP 8.2. ;)

@GrahamCampbell
Copy link
Contributor Author

GrahamCampbell commented Mar 29, 2023

As far as I'm aware, most AL2 users install openssl 1.1.1 or 3.0 themselves.

@bukka
Copy link
Member

bukka commented Mar 29, 2023

Most people use packages and currently PHP ones are shipped with default OpenSSL but there is also openssl11 available so maybe new packages could switch to that. I think most people would use Remi's repo for that so I think it really just a question for @remicollet . If he is fine with the bump, then I'm too.

@bukka
Copy link
Member

bukka commented Mar 29, 2023

Btw the RHEL 7 is supported till June 2024: See https://access.redhat.com/product-life-cycles/ .

@GrahamCampbell
Copy link
Contributor Author

A lot of people use AL2 on Lambda to use PHP. Both Bref and Laravel Vapor compile OpenSSL 1.1.1 from source, in order to build PHP, ignoring the bundled OpenSSL.

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

Successfully merging this pull request may close these issues.

2 participants