fpc 3.2.2 does not work with versions of OpenSSL newer than 1.1.1.
However, instead of OpenSSL 3.0.x, you can install 3.5.x, and it should work as well; I’ve listed the version that I’m certain works.
Even versions 3.5 and 4.0 are vulnerable to security risks. Version 3.0.22 was released about two months ago, so it’s relatively recent and is currently secure, despite having reached EOL.