Cannot open shared object file

I get the following error when executing a binary file:
error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory

This error is likely to occur either because you have not properly defined your $LD_LIBRARY_PATH or the file is simply missing.

To debug try the following:

ldd {binary_file}

or to get more verbose information:

export LD_DEBUG=libs;{binary_file}

for more options:

export LD_DEBUG=help;{binary_file}