You've said, that the server doesn't have openssl libraries in default location, but you compile the module with
-lssl. 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.
--
Someday, people who know how to use computers will rule over
those who don't. And there will be a special name for them:
secretaries. -Dilbert quote