Using electron-builder to build Windows app, When signing up, I got this error :
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
I had the same problem. In my case, for a legacy Rails 2.4 app. It seems brew had updated /usr/local/opt/openssl to symlink to openssl@1.1/1.1.1d.
After trying several other things, I fixed it by manually updating the symlink /usr/local/opt/openssl to point to the 1.0.2s version that was already on my system:
MacBook-Pro/usr/local/opt(:|✔) % pwd
/usr/local/opt
MacBook-Pro/usr/local/opt(:|✔) % ll openssl*
lrwxr-xr-x 1 dhempy admin 24 Feb 19 11:36 openssl -> ../Cellar/openssl/1.0.2s
lrwxr-xr-x 1 dhempy admin 28 Feb 19 08:55 openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1d
Hopefully this is one-and-done for me, and I won't have to reapply that symlink after every update.
This is the process I had to use to fix this issue. I am not sure how to use brew extract correctly.
We need openssl in order to use wget.
brew install openssl
Now, download version 1.0.2t and install it.
wget https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
brew install openssl.rb
Just switch to 1.0.2t
version, using this command:
brew switch openssl 1.0.2t