Using vendored OpenSSL in another framework

I assume on the Mac you installed OpenSSL with homebrew? If you choose to go OpenSSL 1.1 everywhere, you should remove the openssl you have right now and brew install openssl@1.1 so you get 1.1 on the Mac too. But as I said above, 1.0 everywhere (ie Ubuntu 16.04) might be a better bang for the buck until we have a better cross platform crypto story...

Some more info also here OpenSSL errors - #2 by johannesweiss .