Help connecting UE4 to perforce on Linux

Hi, thanks for your quick response! I was having a look and just noticed that the version of OpenSSL in this dir is higher than the UE4 error message requests:

➜  OpenSSL pwd
/home/user/Downloads/UnrealEngine-4.27.2-release/Engine/Source/ThirdParty/OpenSSL

➜  OpenSSL ls -la
total 28
drwxrwxr-x   5 user user 4096 May 17  2023 .
drwxrwxr-x 104 user user 4096 Dec  7  2021 ..
drwxrwxr-x   4 user user 4096 May 17  2023 1.1.1c
drwxrwxr-x   4 user user 4096 May 17  2023 1.1.1k
-rw-rw-r--   1 user user 3244 Dec  7  2021 OpenSSL.Build.cs
-rw-rw-r--   1 user user  637 Dec  7  2021 OpenSSL.tps
drwxrwxr-x   2 user user 4096 May 17  2023 Patches

I have tried chmod -R 777 ./1.1.1c to check it’s not an access error, but I still have the same issue. Would you still recommend upgrading to a higher version of OpenSSL, e.g. 3.x ?

Inside the terminal I am launching UE4 from, I have an extra error message:

LogSourceControl: Error: P4ERROR: Invalid connection to server.
LogSourceControl: Error: Connect to server failed; check $P4PORT.
SSL library must be at least version 1.0.1.

It could be less about OpenSSL, and that the connection vars are not being read properly, though I can’t follow this logic since these vars are set inside of the game engine (below). It also doesn’t work with $P4PORT either set or unset inside of the terminal session.