I am using a php5.6 on my Mac OS, and php-fpm throws an issue:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /email@example.com/sbin/php-fpm
Reason: image not found
Now i have latest OpenSSL version installed. And cannot downgrade it.
To solve this problem you need:
Go to https://www.openssl.org/source/old/ and download version you need
Open downloaded archive and then open terminal there
Run $ make clean, $ ./Configure darwin64-x86_64-cc -shared, $ make, $ make install
Put libcrypto.1.0.0.dylib and libssl.1.0.0.dylib to the /usr/local/Cellar/openssl/lib/
And now it works (For me)!