You've said, that the server doesn't have openssl libraries in default location, but you compile the module with
. The module gets linked against them, and I suppose that at the run time it can't find them. I suppose, that you should now add them through ldconfig, so that at runtime the module can load them.