I have been a user of the Indy Component Library since Delphi days. While Indy is available on Github and does work with Lazarus/FPC, its developers have not brought the package up-to-date in respect of OpenSSL support, even though this has been an open issue for many years. The current version supports OpenSSL 1.0.2 at best - and this is well beyond EOL.
I have thus stepped forward and proposed an update to Indy to support all recent versions of OpenSSL and specifically OpenSSL 3.0, 3.1, 3.2 and the forthcoming 3.3. This is now the subject of "pull request" on Github. If you want to try out this update and provide feedback to the Indy developers, you can go to
https://github.com/MWASoftware/Indy.proposedUpdate and download the proposed update and test it out.
Note that you can use the two openssl test programs without having to install Indy into the Lazarus IDE. However, if you do want to install the update and test it with your own programs, there is a README.proposed.update that you should read first and run either the getindy4lazfpc.sh or the getindy4lazfpc.bat script. These scripts copy the files relevant to Lazarus into a more friendly directory hierarchy and leave behind many "legacy" files".