KB Article #180939

API Gateway's OpenSSL does not run when run on Docker containers

Problem

When running the OpenSSL shipped with the API Gateway on a Docker container, OpenSSL fails with a message like:

error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Resolution

This happens because the shell on the containers does not have LD_LIBRARY_PATH defined and so OpenSSL is unable to locate its shared libraries. To fix this, run the command export LD_LIBRARY_PATH=/opt/Axway/apigateway/Linux.x86_64/lib

After that, OpenSSL will be bale to locate its libraries and will work. You can also define an OPENSSL_CONF variable with export, pointing it to a file containing an OpenSSL config if you wish to avoid that error message. This is rarely needed unless you're using OpenSSL to create certificates and the error about the missing conf file can be safely ignored.