Skip to content

Enable openssl legacy#161

Merged
phil-davis merged 2 commits into
masterfrom
enable-openssl-legacy
Apr 18, 2023
Merged

Enable openssl legacy#161
phil-davis merged 2 commits into
masterfrom
enable-openssl-legacy

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Ubuntu 22.04 has openssl v3. openssl v3 disables various legacy encryption methods. For the current oC10 encryption app, we need those legacy encryption methods to be available.

This PR provides an etc/ssl/opensssl.cnf that has the legacy encryption methods enabled.

Ref: owncloud/core#40745 tries to run core CI with Ubuntu 22.04 docker.
Related core issue owncloud/core#40071
Documentation about how production Ubuntu 22.04 systems enable the legacy encryption methods: https://doc.owncloud.com/server/10.12/admin_manual/installation/manual_installation/manual_installation_prerequisites.html#openssl-version

@phil-davis
phil-davis requested a review from xoxys April 18, 2023 11:38
@phil-davis

Copy link
Copy Markdown
Contributor Author

@xoxys is this the way to achieve this? Or is there a different way it should be done?

@xoxys

xoxys commented Apr 18, 2023

Copy link
Copy Markdown
Contributor

IMO, we should not use Ubuntu 22 for anything related to oc10. We add more and more hacks and workarounds to get it working somehow (PHP, OpenSSL, etc.). Sticking to Ubuntu 20.04 as long as possible, especially for the production containers owncloud/server and owncloud/appliance I would not recommend the switch to Ubuntu 22.

However, if the legacy stuff is really required, yes I guess that's the way to go even if I have not tested/verified it.

@xoxys

xoxys commented Apr 18, 2023

Copy link
Copy Markdown
Contributor

Don't know the details, but is it really a good idea to tell people to use the legacy mode instead of fixing the code to support a modern OpenSSL version?

@phil-davis

Copy link
Copy Markdown
Contributor Author

We have theowncloud-ci/php container versions for Ubuntu 22.04 so it would be nice to apply the customisations that we know about. That way those container versions can be used to "easily" check the Ubuntu 22.04 + PHP 7.4 + ownCloud10 combination.

https://doc.owncloud.com/server/next/admin_manual/installation/system_requirements.html#officially-supported-environments lists Ubuntu 20.04 and 22.04 - so if 22.04 is not to be supported, that would need to be discussed.

@xoxys xoxys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for me. But shouldn't the CI fail as expected as long as the encryption app is not fixed properly? The legacy mode might be a workaround for existing deployments, but it's still just a workaround and not a proper fix. However, don't want to block you, feel free to merge.

@xoxys

xoxys commented Apr 18, 2023

Copy link
Copy Markdown
Contributor

As there are no plans to fix it, using the legacy mode is the only way.

@phil-davis
phil-davis merged commit 8c109b1 into master Apr 18, 2023
@phil-davis
phil-davis deleted the enable-openssl-legacy branch April 18, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants