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

Issues when running tests inside a linux container that have ssl requirements #12

Open
CMon opened this issue Dec 20, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@CMon
Copy link

CMon commented Dec 20, 2023

After following your instructions from #1 to extend the container by my needed libraries (both via aqt and apt) I now run into the problem that I am unable to run tests that use SSL, I get the following error from Qt:

Incompatible version of OpenSSL (built with OpenSSL >= 3.x, runtime version is < 3.x)

I had a further look into it, and figured out that the packages installed via aqt are build on a recent redhat enterprise version 8.8 (for example: qt.qt6.661.gcc_64 which has a recent openssl (>3.0) your containers are using ubuntu 20.04 which is quite old and only has openssl 1 available. So even deriving a container from your containers and extending it does not work anymore since the whole base needs to be replaced. Or is there a different way to achieve an openssl update?

@rabits
Copy link
Member

rabits commented Dec 21, 2023

Hi @CMon , unfortunately, you did not provide steps to reproduce - so it will be hard for me to speculate on what's happening there, but I'll try... And you right - the system openssl will not work here, you need to install openssl as a tool provided by aqt like that: aqt install-tool -O "$QT_PATH" linux desktop tools_opensslv3_src - unfortunately it's not a binary, so will require to be built. Also you can try to use rhel lib, but it could become ugly quite quickly...

@CMon
Copy link
Author

CMon commented Dec 27, 2023

Well basically I create a QHttpServer with a predefined ssl certificate for the tests (created on my system with a recent openssl, and selfsigned (no need to recreate certificates for the tests all the time)). Then use the QNetworkManager to do simple API calls against the HttpServer. I have no simple example at hand.

My current solution is not using #1 advice 2/3 but use advice 1 use your setups as an inspiration on how to use the aqt installer and recreate the images with fedora:40.

@rabits
Copy link
Member

rabits commented Dec 28, 2023

That's great to see that you've solved the issue by using base fedora docker images! Would probably need to work on this issue, because openssl is quite important library out there... Will check the options.

@rabits rabits self-assigned this Dec 28, 2023
@rabits rabits added the bug Something isn't working label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants